From 4ad8b3b87dbb2d521b00e6244d6137b7bc6ff2ff Mon Sep 17 00:00:00 2001 From: Denis Arh Date: Wed, 9 Dec 2020 21:02:27 +0100 Subject: [PATCH] Fix crash on when email confirmation is required --- system/service/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/service/auth.go b/system/service/auth.go index bc1e6f84d..ef503f582 100644 --- a/system/service/auth.go +++ b/system/service/auth.go @@ -381,6 +381,7 @@ func (svc auth) InternalSignUp(ctx context.Context, input *types.User, password } } + u = nUser if !nUser.EmailConfirmed { err = svc.sendEmailAddressConfirmationToken(ctx, nUser) if err != nil { @@ -390,7 +391,6 @@ func (svc auth) InternalSignUp(ctx context.Context, input *types.User, password return svc.recordAction(ctx, aam, AuthActionSendEmailConfirmationToken, nil) } - u = nUser return nil }()