Allow login through Kerberos if the user already exists in DB

This commit is contained in:
nemunaire 2022-05-15 12:34:38 +02:00
parent 02ce694a35
commit 6c89d3e9be

View File

@ -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.")
}