diff options
| author | André Noack <noack@data-quest.de> | 2023-08-21 16:04:38 +0000 |
|---|---|---|
| committer | André Noack <noack@data-quest.de> | 2023-08-21 16:04:38 +0000 |
| commit | ef877b7e700804201d8b859cd8b47307c8bb60fc (patch) | |
| tree | e32aff33fa6fc1c3e8fc44471eedfaad056f65a2 | |
| parent | 3f2d859d8043bf909ef3fa0697a7531af9d45bd7 (diff) | |
Resolve "SSO Login fragt getUser() ab, aber es gibt u.U. keinen Stud.IP Nutzer dazu"
Closes #3058
Merge request studip/studip!2045
| -rw-r--r-- | lib/phplib/Seminar_Auth.class.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/phplib/Seminar_Auth.class.php b/lib/phplib/Seminar_Auth.class.php index dc65d19..c628e0a 100644 --- a/lib/phplib/Seminar_Auth.class.php +++ b/lib/phplib/Seminar_Auth.class.php @@ -261,9 +261,8 @@ class Seminar_Auth // then do login if (($authplugin = StudipAuthAbstract::GetInstance($provider))) { - $authplugin->authenticateUser('', ''); - if ($authplugin->getUser()) { - $user = $authplugin->getStudipUser($authplugin->getUser()); + $user = $authplugin->authenticateUser('', ''); + if ($user) { if ($user->isExpired()) { throw new AccessDeniedException(_('Dieses Benutzerkonto ist abgelaufen. Wenden Sie sich bitte an die Administration.')); } @@ -279,6 +278,8 @@ class Seminar_Auth Metrics::increment('core.sso_login.succeeded'); return $user->id; + } else { + PageLayout::postMessage(MessageBox::error($authplugin->plugin_name . ': ' . _('Login fehlgeschlagen'), $authplugin->error_msg ? [$authplugin->error_msg] : []),md5($authplugin->error_msg)); } } } |
