Skip to content
Snippets Groups Projects

only allow logins if the app unique key matches for the session

Merged Alan Bell requested to merge alanbell/vtigercrm:session_scope_check into master
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -42,7 +42,7 @@ class Vtiger_WebUI extends Vtiger_EntryPoint {
$user = parent::getLogin();
if (!$user) {
$userid = Vtiger_Session::get('AUTHUSERID', $_SESSION['authenticated_user_id']);
if ($userid) {
if ($userid && vglobal('application_unique_key')==$_SESSION['app_unique_key']) {
$user = CRMEntity::getInstance('Users');
$user->retrieveCurrentUserInfoFromFile($userid);
$this->setLogin($user);
Loading