Skip to content
Snippets Groups Projects
Verified Commit 44da9306 authored by Damien's avatar Damien
Browse files

FEAT #7659 better triggerAngular again

parent 9aebdc09
No related branches found
No related tags found
No related merge requests found
...@@ -177,7 +177,7 @@ if ($_REQUEST['triggerAngular'] != 'changePass' || isset($_REQUEST['page'])) { ...@@ -177,7 +177,7 @@ if ($_REQUEST['triggerAngular'] != 'changePass' || isset($_REQUEST['page'])) {
if ($_REQUEST['page'] != 'login' && $_REQUEST['page'] != 'log' && $_REQUEST['page'] != 'logout' && !empty($_SESSION['user']['UserId'])) { if ($_REQUEST['page'] != 'login' && $_REQUEST['page'] != 'log' && $_REQUEST['page'] != 'logout' && !empty($_SESSION['user']['UserId'])) {
$passwordRules = \SrcCore\models\PasswordModel::getEnabledRules(); $passwordRules = \SrcCore\models\PasswordModel::getEnabledRules();
$user = \User\models\UserModel::getByUserId(['userId' => $_SESSION['user']['user_id'], 'select' => ['password_modification_date', 'change_password']]); $user = \User\models\UserModel::getByUserId(['userId' => $_SESSION['user']['UserId'], 'select' => ['password_modification_date', 'change_password']]);
if ($user['change_password'] == 'Y') { if ($user['change_password'] == 'Y') {
header('location: '.$_SESSION['config']['businessappurl'].'index.php?triggerAngular=changePass'); header('location: '.$_SESSION['config']['businessappurl'].'index.php?triggerAngular=changePass');
exit(); exit();
......
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