aboutsummaryrefslogtreecommitdiffstats
path: root/admin/auth.php
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-09-19 13:44:44 +0200
committerThomas Lange <code@nerdmind.de>2021-09-19 13:55:16 +0200
commit19a7e6d54de4286461c6ae74970dfdbe994a335c (patch)
tree84a69a9e874190184d2cddb83fa6f6f381055e7e /admin/auth.php
parent2738a6d20ebde5da0d8eb96c6c2b2cc30750245a (diff)
downloadblog-19a7e6d54de4286461c6ae74970dfdbe994a335c.tar.gz
blog-19a7e6d54de4286461c6ae74970dfdbe994a335c.tar.xz
blog-19a7e6d54de4286461c6ae74970dfdbe994a335c.zip
Rename some session array keys
* Rename "auth" to "USER_ID" * Rename "token" to "CSRF_TOKEN"
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');