mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-05 22:52:46 +00:00
fix: improve autofill values (#6541)
This commit is contained in:
parent
3c6168d026
commit
c790715628
@ -121,10 +121,14 @@ func (l *Login) renderInitUser(w http.ResponseWriter, r *http.Request, authReq *
|
|||||||
baseData: l.getBaseData(r, authReq, "InitUser.Title", "InitUser.Description", errID, errMessage),
|
baseData: l.getBaseData(r, authReq, "InitUser.Title", "InitUser.Description", errID, errMessage),
|
||||||
profileData: l.getProfileData(authReq),
|
profileData: l.getProfileData(authReq),
|
||||||
UserID: userID,
|
UserID: userID,
|
||||||
LoginName: loginName,
|
|
||||||
Code: code,
|
Code: code,
|
||||||
PasswordSet: passwordSet,
|
PasswordSet: passwordSet,
|
||||||
}
|
}
|
||||||
|
// if the user clicked on the link in the mail, we need to make sure the loginName is rendered
|
||||||
|
if authReq == nil {
|
||||||
|
data.LoginName = loginName
|
||||||
|
data.UserName = loginName
|
||||||
|
}
|
||||||
policy := l.getPasswordComplexityPolicyByUserID(r, userID)
|
policy := l.getPasswordComplexityPolicyByUserID(r, userID)
|
||||||
if policy != nil {
|
if policy != nil {
|
||||||
data.MinLength = policy.MinLength
|
data.MinLength = policy.MinLength
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
{{ .CSRF }}
|
{{ .CSRF }}
|
||||||
|
|
||||||
<input type="hidden" name="authRequestID" value="{{ .AuthReqID }}" />
|
<input type="hidden" name="authRequestID" value="{{ .AuthReqID }}" />
|
||||||
<input type="text" name="loginname" value="{{ .LoginName }}" autocomplete="username" class="hidden" />
|
<input type="text" name="loginName" value="{{if .DisplayLoginNameSuffix}}{{.LoginName}}{{else}}{{.UserName}}{{end}}" autocomplete="username" class="hidden" />
|
||||||
|
|
||||||
<div class="fields">
|
<div class="fields">
|
||||||
<div class="field">
|
<div class="field">
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
<input type="hidden" name="userID" value="{{ .UserID }}" />
|
<input type="hidden" name="userID" value="{{ .UserID }}" />
|
||||||
<input type="hidden" name="passwordSet" value="{{ .PasswordSet }}" />
|
<input type="hidden" name="passwordSet" value="{{ .PasswordSet }}" />
|
||||||
<input type="hidden" name="orgID" value="{{ .OrgID }}" />
|
<input type="hidden" name="orgID" value="{{ .OrgID }}" />
|
||||||
<input type="text" name="loginname" value="{{ .LoginName }}" autocomplete="username" class="hidden" />
|
<input type="text" name="loginName" value="{{if .DisplayLoginNameSuffix}}{{.LoginName}}{{else}}{{.UserName}}{{end}}" autocomplete="username" class="hidden" />
|
||||||
|
|
||||||
<div class="fields">
|
<div class="fields">
|
||||||
<div class="field">
|
<div class="field">
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
{{ .CSRF }}
|
{{ .CSRF }}
|
||||||
|
|
||||||
<input type="hidden" name="authRequestID" value="{{ .AuthReqID }}" />
|
<input type="hidden" name="authRequestID" value="{{ .AuthReqID }}" />
|
||||||
<input type="text" name="loginName" value="{{ .LoginName }}" autocomplete="username" class="hidden" />
|
<input type="text" name="loginName" value="{{if .DisplayLoginNameSuffix}}{{.LoginName}}{{else}}{{.UserName}}{{end}}" autocomplete="username" class="hidden" />
|
||||||
|
|
||||||
<div class="fields">
|
<div class="fields">
|
||||||
<label class="lgn-label" for="password">{{t "Password.PasswordLabel"}}</label>
|
<label class="lgn-label" for="password">{{t "Password.PasswordLabel"}}</label>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user