aboutsummaryrefslogtreecommitdiffstats
path: root/admin/auth.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/auth.php')
-rw-r--r--admin/auth.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/auth.php b/admin/auth.php
index d0abc38..8d7bf9a 100644
--- a/admin/auth.php
+++ b/admin/auth.php
@@ -33,7 +33,7 @@ if(HTTP::issetPOST('username', 'password')) {
if($User = $UserRepository->findBy('username', HTTP::POST('username'))) {
if(password_verify(HTTP::POST('password'), $User->get('password'))) {
- $_SESSION['auth'] = $User->getID();
+ $_SESSION['USER_ID'] = $User->getID();
HTTP::redirect(Application::getAdminURL());
} else {
$messages[] = $Language->text('authentication_failure');