3
0

Handle email confirmation token correctly

This commit is contained in:
Peter Grlica 2022-05-04 11:04:11 +02:00 committed by Denis Arh
parent 2bddfd6af2
commit c12385ebaa

View File

@ -126,7 +126,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 == nil && req.AuthUser.User == nil {
if req.AuthUser == nil || req.AuthUser.User == nil {
req.RedirectTo = GetLinks().Login
} else {
req.RedirectTo = GetLinks().Profile