Requested change: Add logging for no such user and canSelfRegister=false

This commit is contained in:
Hardy Pottinger
2022-01-21 17:17:17 -06:00
parent 3a04b92c80
commit 7c944d5eb5

View File

@@ -138,6 +138,7 @@ 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);
return canSelfRegister() ? registerNewEPerson(context, userInfo, email) : NO_SUCH_USER;
}