Reputation:
My requirement is to integrate one time password (OTP) for registration form with mobile number as additional field. So that at the time of registration user will receive one time password (OTP) on mobile number. By submitting correct OTP the User will get validated and confirmed for registration. How to achieve the same? Regards, Niraj Kumar
Upvotes: 0
Views: 677
Reputation: 5758
You need make change on registration form and register controller. First post, validate form and trigger sms service for OTP. Save OTP and phone number to session and show OTP field on register form. In second post validate form OTP with session OTP.
Upvotes: 0