http: local-login rejects auth_source='oidc' users

This commit is contained in:
2026-05-05 13:37:07 +01:00
parent d2ffc98f3c
commit 1cf9cb752f
2 changed files with 32 additions and 0 deletions
+3
View File
@@ -56,6 +56,9 @@ func (s *Server) authenticateAndSession(w stdhttp.ResponseWriter, r *stdhttp.Req
// existence to a probing attacker.
return nil, errInvalidCredentials
}
if u.AuthSource == "oidc" {
return nil, errInvalidCredentials
}
if err := auth.VerifyPassword(u.PasswordHash, password); err != nil {
return nil, errInvalidCredentials
}