Skip to content
Snippets Groups Projects
Commit 4f48fb18 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FIX #8514 fix auth redirect after refectoring

parent 4ef3cd36
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
......@@ -318,10 +318,10 @@ if ($_REQUEST['page'] && empty($_REQUEST['triggerAngular'])) {
$_SESSION['error'] = '';
$_SESSION['info'] = '';
$core->view_debug();
echo '</div>';
echo '</div>';
$core->view_debug();
echo '</body>';
echo '</html>';
exit();
......@@ -344,6 +344,9 @@ if ($_REQUEST['page'] && empty($_REQUEST['triggerAngular'])) {
<script src='js/angularFunctions.js'></script>
<?php
$cookie = \SrcCore\models\AuthenticationModel::getCookieAuth();
if (empty($cookie)) {
header('location: index.php?display=true&page=logout&logout=true');
}
chdir('../..');
$user = \User\models\UserModel::getByUserId(['userId' => $cookie['userId'], 'select' => ['password_modification_date', 'change_password', 'status']]);
......
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