Skip to content
Snippets Groups Projects
Commit 5af0698e authored by André Noack's avatar André Noack
Browse files

repair Shibboleth login fixes #5045

Closes #5045

Merge request studip/studip!3810
parent d43d4b7b
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,7 @@ class Manager
Metrics::increment('core.sso_login.attempted');
// then do login
$authplugin = StudipAuthAbstract::GetInstance($provider);
if ($authplugin) {
if ($authplugin instanceof \StudipAuthSSO) {
$authplugin->authenticateUser('', '');
if ($authplugin->getUser()) {
$user = $authplugin->getStudipUser($authplugin->getUser());
......@@ -71,8 +71,8 @@ class Manager
}
Metrics::increment('core.sso_login.succeeded');
sess()->regenerateId(['auth', '_language', 'phpCAS', 'contrast']);
$this->setAuthenticatedUser($user);
sess()->regenerateId(['auth', '_language', 'phpCAS', 'contrast']);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment