Hi, i have used the defualt user register system to a new app.
when a user register i need the user to confirm the phone number the user register with. i have a API to a SMS gateway to send out a confirm password but now to do this in the app?
Hi, i have used the defualt user register system to a new app.
when a user register i need the user to confirm the phone number the user register with. i have a API to a SMS gateway to send out a confirm password but now to do this in the app?
Hello,
Please follow topic below: https://blog.appery.io/2014/03/dialin...
Hi Sergiy, Sending the SMS is not the problem, but make the user do that the user cannot use the app before he have confirm the account. (eks set activete=1 in DB) for using the app.
Hi Hawk,
It's up to you how to implement this logic.
Common way is:
Add "NotConfirmedUsers" collection to your app.
Generate random number.
Save all fields(user entered) and random number to this collection.
Send sms with stored random number to user.
User enter this random number and submits form again.
Server logic(server code) get stored random number from DB and compare it with entered by user number.
If numbers are equal - you register new user(in system Users collection).
If numbers are not equal - you show user some alert about wrong number.
Regards