Skip to content

Commit

Permalink
add: SMS error pop up - Add "or contact support" at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
yaroslav-fedyshyn-nordwhale committed Nov 27, 2019
1 parent f2702f4 commit 08166eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/verification/verificationAPI.js
Expand Up @@ -132,7 +132,7 @@ const setup = (app: Router, verifier: VerificationAPI, storage: StorageAPI) => {
const savedMobile = userRec.mobile

if (conf.allowDuplicateUserData === false && (await storage.isDupUserData({ mobile }))) {
return res.json({ ok: 0, error: 'Mobile already exists, please use a different one.' })
return res.json({ ok: 0, error: 'Mobile already exists, please use a different one or contact support.' })
}

log.debug('sending otp:', user.loggedInAs)
Expand Down Expand Up @@ -285,7 +285,7 @@ const setup = (app: Router, verifier: VerificationAPI, storage: StorageAPI) => {
const savedEmail = userRec.email

if (conf.allowDuplicateUserData === false && (await storage.isDupUserData({ email }))) {
return res.json({ ok: 0, error: 'Email already exists, please use a different one or contact support' })
return res.json({ ok: 0, error: 'Email already exists, please use a different one' })
}
if (!user.mauticId || user.email !== body.email) {
//first time create contact for user in mautic
Expand Down

0 comments on commit 08166eb

Please sign in to comment.