fix: handle signup token

This commit is contained in:
Lakhan Samani
2021-07-28 23:53:54 +05:30
parent 78b5b33a3d
commit d1973c1f8f
6 changed files with 32 additions and 31 deletions

View File

@@ -64,7 +64,7 @@ func Signup(ctx context.Context, params model.SignUpInput) (*model.AuthResponse,
if constants.DISABLE_EMAIL_VERICATION == "true" {
user.EmailVerifiedAt = time.Now().Unix()
}
_, err = db.Mgr.SaveUser(user)
user, err = db.Mgr.SaveUser(user)
if err != nil {
return res, err
}