Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Stud.IP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marcus Eibrink-Lunzenauer
Stud.IP
Commits
ef877b7e
Commit
ef877b7e
authored
1 year ago
by
André Noack
Browse files
Options
Downloads
Patches
Plain Diff
Resolve "SSO Login fragt getUser() ab, aber es gibt u.U. keinen Stud.IP Nutzer dazu"
Closes #3058 Merge request
studip/studip!2045
parent
3f2d859d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/phplib/Seminar_Auth.class.php
+4
-3
4 additions, 3 deletions
lib/phplib/Seminar_Auth.class.php
with
4 additions
and
3 deletions
lib/phplib/Seminar_Auth.class.php
+
4
−
3
View file @
ef877b7e
...
@@ -261,9 +261,8 @@ class Seminar_Auth
...
@@ -261,9 +261,8 @@ class Seminar_Auth
// then do login
// then do login
if
((
$authplugin
=
StudipAuthAbstract
::
GetInstance
(
$provider
)))
{
if
((
$authplugin
=
StudipAuthAbstract
::
GetInstance
(
$provider
)))
{
$authplugin
->
authenticateUser
(
''
,
''
);
$user
=
$authplugin
->
authenticateUser
(
''
,
''
);
if
(
$authplugin
->
getUser
())
{
if
(
$user
)
{
$user
=
$authplugin
->
getStudipUser
(
$authplugin
->
getUser
());
if
(
$user
->
isExpired
())
{
if
(
$user
->
isExpired
())
{
throw
new
AccessDeniedException
(
_
(
'Dieses Benutzerkonto ist abgelaufen. Wenden Sie sich bitte an die Administration.'
));
throw
new
AccessDeniedException
(
_
(
'Dieses Benutzerkonto ist abgelaufen. Wenden Sie sich bitte an die Administration.'
));
}
}
...
@@ -279,6 +278,8 @@ class Seminar_Auth
...
@@ -279,6 +278,8 @@ class Seminar_Auth
Metrics
::
increment
(
'core.sso_login.succeeded'
);
Metrics
::
increment
(
'core.sso_login.succeeded'
);
return
$user
->
id
;
return
$user
->
id
;
}
else
{
PageLayout
::
postMessage
(
MessageBox
::
error
(
$authplugin
->
plugin_name
.
': '
.
_
(
'Login fehlgeschlagen'
),
$authplugin
->
error_msg
?
[
$authplugin
->
error_msg
]
:
[]),
md5
(
$authplugin
->
error_msg
));
}
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment