Skip to content
Snippets Groups Projects
Commit 9b7ed9e2 authored by Alan Bell's avatar Alan Bell
Browse files

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

parent e28eac10
Branches session_scope_check
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment