Allow login through Kerberos if the user already exists in DB
This commit is contained in:
parent
02ce694a35
commit
6c89d3e9be
@ -51,7 +51,7 @@ func checkAuthKrb5(w http.ResponseWriter, _ httprouter.Params, body []byte) (int
|
||||
}
|
||||
}
|
||||
|
||||
if !found {
|
||||
if !userExists(lf.Login) && !found {
|
||||
return nil, fmt.Errorf("You are not allowed to log you in this way. Please use OpenID Connect.")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user