fix: make success message relevant

This commit is contained in:
Mrugesh Mohapatra
2018-05-29 02:23:19 +05:30
parent 5f8eb3615a
commit c0156b41e2
3 changed files with 58 additions and 63 deletions

View File

@ -576,14 +576,9 @@ module.exports = function(User) {
this.update$({ emailAuthLinkTTL })
);
})
.map(() => isSignUp ?
.map(() =>
dedent`
We created a new account for you!
Check your email and click the sign in link we sent you.
` :
dedent`
We found your existing account.
Check your email and click the sign in link we sent you.
Check your email and click the link we sent you to confirm you email.
`
);
}