mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 03:24:26 +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:
parent
900894161f
commit
d177b82d2d
@ -95,7 +95,7 @@ func (l *Login) renderLogin(w http.ResponseWriter, r *http.Request, authReq *dom
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
errID, errMessage = l.getErrorMessage(r, err)
|
errID, errMessage = l.getErrorMessage(r, err)
|
||||||
}
|
}
|
||||||
if singleIDPAllowed(authReq) {
|
if err == nil && singleIDPAllowed(authReq) {
|
||||||
l.handleIDP(w, r, authReq, authReq.AllowedExternalIDPs[0].IDPConfigID)
|
l.handleIDP(w, r, authReq, authReq.AllowedExternalIDPs[0].IDPConfigID)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,9 @@
|
|||||||
<a class="lgn-icon-button lgn-left-action" id="back-button" href="#">
|
<a class="lgn-icon-button lgn-left-action" id="back-button" href="#">
|
||||||
<i class="lgn-icon-arrow-left-solid"></i>
|
<i class="lgn-icon-arrow-left-solid"></i>
|
||||||
</a>
|
</a>
|
||||||
|
{{if hasUsernamePasswordLogin}}
|
||||||
<button class="lgn-raised-button lgn-primary lgn-initial-focus" id="submit-button" type="submit">{{t "Login.NextButtonText"}}</button>
|
<button class="lgn-raised-button lgn-primary lgn-initial-focus" id="submit-button" type="submit">{{t "Login.NextButtonText"}}</button>
|
||||||
|
{{end}}
|
||||||
<span class="fill-space"></span>
|
<span class="fill-space"></span>
|
||||||
{{if hasRegistration}}
|
{{if hasRegistration}}
|
||||||
<button class="lgn-stroked-button" name="register" value="true" formnovalidate>{{t "Login.RegisterButtonText"}}</button>
|
<button class="lgn-stroked-button" name="register" value="true" formnovalidate>{{t "Login.RegisterButtonText"}}</button>
|
||||||
|
Loading…
Reference in New Issue
Block a user