From 19a7e6d54de4286461c6ae74970dfdbe994a335c Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Sun, 19 Sep 2021 13:44:44 +0200 Subject: Rename some session array keys * Rename "auth" to "USER_ID" * Rename "token" to "CSRF_TOKEN" --- admin/auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'admin') 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'); -- cgit v1.2.3