mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-12 19:13:52 +00:00
fix: render login (#432)
This commit is contained in:
parent
5add7eae6d
commit
bc5f16d5b4
@ -56,9 +56,13 @@ func (l *Login) renderLogin(w http.ResponseWriter, r *http.Request, authReq *mod
|
||||
if err != nil {
|
||||
errMessage = l.getErrorMessage(r, err)
|
||||
}
|
||||
loginName := ""
|
||||
if authReq != nil {
|
||||
loginName = authReq.LoginName
|
||||
}
|
||||
data := userData{
|
||||
baseData: l.getBaseData(r, authReq, "Login", errType, errMessage),
|
||||
LoginName: authReq.LoginName,
|
||||
LoginName: loginName,
|
||||
}
|
||||
l.renderer.RenderTemplate(w, r, l.renderer.Templates[tmplLogin], data, nil)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user