Skip to content

Commit

Permalink
add: change otp message
Browse files Browse the repository at this point in the history
  • Loading branch information
sirpy committed May 27, 2019
1 parent 71b0dec commit 882ddd9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/imports/otp.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ const sendOTP = (user: UserRecord): Promise<any> => {
const { mobile } = user
const client = new plivo.Client(plivoAuthID, plivoAuthToken)
const otp = generateOTP(conf.otpDigits)
return Promise.all([client.messages.create(plivoPhoneNumber, mobile, otp), otp])
const msg = 'Your GoodDollar Verification Code Is: ' + otp
return Promise.all([client.messages.create(plivoPhoneNumber, mobile, msg), otp])
}

export { generateOTP, sendOTP }

0 comments on commit 882ddd9

Please sign in to comment.