mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 02:54:20 +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 {
|
||||
return userData{
|
||||
userData := userData{
|
||||
baseData: l.getBaseData(r, authReq, title, errType, errMessage),
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user