mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-12 23:34:05 +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 {
|
if err != nil {
|
||||||
errMessage = l.getErrorMessage(r, err)
|
errMessage = l.getErrorMessage(r, err)
|
||||||
}
|
}
|
||||||
|
loginName := ""
|
||||||
|
if authReq != nil {
|
||||||
|
loginName = authReq.LoginName
|
||||||
|
}
|
||||||
data := userData{
|
data := userData{
|
||||||
baseData: l.getBaseData(r, authReq, "Login", errType, errMessage),
|
baseData: l.getBaseData(r, authReq, "Login", errType, errMessage),
|
||||||
LoginName: authReq.LoginName,
|
LoginName: loginName,
|
||||||
}
|
}
|
||||||
l.renderer.RenderTemplate(w, r, l.renderer.Templates[tmplLogin], data, nil)
|
l.renderer.RenderTemplate(w, r, l.renderer.Templates[tmplLogin], data, nil)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user