mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-04 21:32:15 +00:00
fix: improve autofill values (#6541)
This commit is contained in:
@@ -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),
|
||||
profileData: l.getProfileData(authReq),
|
||||
UserID: userID,
|
||||
LoginName: loginName,
|
||||
Code: code,
|
||||
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)
|
||||
if policy != nil {
|
||||
data.MinLength = policy.MinLength
|
||||
|
||||
Reference in New Issue
Block a user