mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-05 22:52:46 +00:00
fix: nil pointer on get userdata (#815)
This commit is contained in:
parent
9ad547185c
commit
a19b4d2659
@ -226,11 +226,14 @@ func (l *Login) renderInternalError(w http.ResponseWriter, r *http.Request, auth
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (l *Login) getUserData(r *http.Request, authReq *model.AuthRequest, title string, errType, errMessage string) userData {
|
func (l *Login) getUserData(r *http.Request, authReq *model.AuthRequest, title string, errType, errMessage string) userData {
|
||||||
return userData{
|
userData := userData{
|
||||||
baseData: l.getBaseData(r, authReq, title, errType, errMessage),
|
baseData: l.getBaseData(r, authReq, title, errType, errMessage),
|
||||||
profileData: l.getProfileData(authReq),
|
profileData: l.getProfileData(authReq),
|
||||||
Linking: len(authReq.LinkingUsers) > 0,
|
|
||||||
}
|
}
|
||||||
|
if authReq != nil && authReq.LinkingUsers != nil {
|
||||||
|
userData.Linking = len(authReq.LinkingUsers) > 0
|
||||||
|
}
|
||||||
|
return userData
|
||||||
}
|
}
|
||||||
|
|
||||||
func (l *Login) getBaseData(r *http.Request, authReq *model.AuthRequest, title string, errType, errMessage string) baseData {
|
func (l *Login) getBaseData(r *http.Request, authReq *model.AuthRequest, title string, errType, errMessage string) baseData {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user