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 110b413468
commit a410cb520d

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.") return nil, fmt.Errorf("You are not allowed to log you in this way. Please use OpenID Connect.")
} }