mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-13 09:25:12 +00:00
fix(login): check for error before automatic idp redirect (#7891)
* fix(login): check for error before automatic idp redirect * hide next button on login page if username password is not enabled
This commit is contained in:
@@ -95,7 +95,7 @@ func (l *Login) renderLogin(w http.ResponseWriter, r *http.Request, authReq *dom
|
||||
if err != nil {
|
||||
errID, errMessage = l.getErrorMessage(r, err)
|
||||
}
|
||||
if singleIDPAllowed(authReq) {
|
||||
if err == nil && singleIDPAllowed(authReq) {
|
||||
l.handleIDP(w, r, authReq, authReq.AllowedExternalIDPs[0].IDPConfigID)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user