You want to provide user login with the phone number instead of email. Also, there should be user verification through mobile via OTP on registration. How to provide that?
StoreHippo allows your customers to log in to your store via mobile number. If you enable login via phone in your store, your customers don't need an email id, and they can log in to your store through a phone number. To do so, first, you need to enable user verification and provide login field asphonein User Settings and provide fields in Register and Login forms. Follow the below-mentioned steps to enable login via mobile number:
The registration form appears as shown below by default. Click on Add field to add a new field for the mobile number.
Enter Field label as "Mobile Number", Field name as "phone" and select Type as "Phone".
You can drag the Mobile Number field and place it anywhere in the form.
Click on the field settings and select the required checkbox.
Save the form.
The registration form appears as shown below on the storefront.
When your customers register by entering all the details in the registration form, an OTP is sent to their registered mobile number for verification. They are required to provide the OTP in the verification form given below:
Now, go back to Forms and select the login form.
The registration form appears as shown below by default.
Replace Email with "Phone Number" and Type as "Phone".
Save the login form changes.
The login form appears as shown below on the storefront.
Your customers can now log in with the phone number in your store.