Verification link copy

This commit is contained in:
Wyatt Johnson
2018-03-22 12:50:37 -06:00
parent b65e7a0ad9
commit 34fa2fb891
4 changed files with 25 additions and 4 deletions
+2 -2
View File
@@ -837,7 +837,7 @@ class UsersService {
// Ensure that the user email hasn't already been verified.
if (profile && profile.metadata && profile.metadata.confirmed_at) {
throw new Error('email address already confirmed');
throw errors.ErrEmailAlreadyVerified;
}
return JWT_SECRET.sign(
@@ -884,7 +884,7 @@ class UsersService {
}
if (profile.metadata && profile.metadata.confirmed_at !== null) {
throw errors.ErrEmailVerificationToken;
throw errors.ErrEmailAlreadyVerified;
}
return decoded;