mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-09 19:13:18 +00:00
Requested changes
- only warn about failure to find a matching ePerson if canSelfRegister is false - tell LGTMbot everything is fine with the redirect - remove comments about nonexistent ORCID login code
This commit is contained in:
@@ -137,8 +137,12 @@ public class OidcAuthenticationBean implements AuthenticationMethod {
|
||||
return ePerson.canLogIn() ? logInEPerson(context, ePerson) : BAD_ARGS;
|
||||
}
|
||||
|
||||
LOGGER.warn("Self registration is currently disabled for OIDC, and no ePerson could be found for email: {}",
|
||||
email);
|
||||
// if self registration is disabled, warn about this failure to find a matching eperson
|
||||
if (! canSelfRegister()) {
|
||||
LOGGER.warn("Self registration is currently disabled for OIDC, and no ePerson could be found for email: {}",
|
||||
email);
|
||||
}
|
||||
|
||||
return canSelfRegister() ? registerNewEPerson(context, userInfo, email) : NO_SUCH_USER;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user