Fix nil-pointer panic in auth flow
This commit is contained in:
parent
02b137d19e
commit
a547377f23
@ -124,7 +124,7 @@ func (h *AuthHandlers) confirmEmail(req *request.AuthReq) (err error) {
|
||||
// redirect to the right page
|
||||
// not doing this here and relying on handler on subseq. request
|
||||
// will cause alerts to be removed
|
||||
if req.AuthUser.User == nil {
|
||||
if req.AuthUser == nil && req.AuthUser.User == nil {
|
||||
req.RedirectTo = GetLinks().Login
|
||||
} else {
|
||||
req.RedirectTo = GetLinks().Profile
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user