aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/new_password.php
diff options
context:
space:
mode:
authorAndré Noack <noack@data-quest.de>2025-01-06 08:27:56 +0000
committerAndré Noack <noack@data-quest.de>2025-01-06 08:27:56 +0000
commit8d0530e7de15ba67986d4d71fdf86db5a5e26bff (patch)
treeb7ef4c9242a5f2eb6b8a2976c54ff7463025cc1a /app/controllers/new_password.php
parent5de295700374f969150f5be6abfe37c76c8a1817 (diff)
Resolve #5090 "Übrig gebliebene Verwendung von $GLOBALS['auth'] entfernen"
Closes #5090 Merge request studip/studip!3804
Diffstat (limited to 'app/controllers/new_password.php')
-rw-r--r--app/controllers/new_password.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/new_password.php b/app/controllers/new_password.php
index 956bc5c..baa9e62 100644
--- a/app/controllers/new_password.php
+++ b/app/controllers/new_password.php
@@ -19,7 +19,7 @@ class NewPasswordController extends StudipController
return;
}
- if ($GLOBALS['auth'] && $GLOBALS['auth']->auth["uid"] != "nobody") {
+ if (User::findCurrent()) {
PageLayout::postError(_("Sie können kein neues Passwort anfordern, wenn Sie bereits eingeloggt sind."));
$this->redirect('start');
return;