maofalt / Transcendence

4 stars 0 forks source link

SNS verifications #257

Closed coisu closed 6 months ago

coisu commented 6 months ago

make sure the phone number data is start with +33 and rest of number without 0 in the first place tested with sms Test button(smsTest.html)

when user try to add or update phone number on profile.

POST 'api/user_management/auth/updateSandbox' with body data {phone_number} it will send otp to verify number for sandbox, then call endpoint with phone number and one-time-password generated by sandbox POST 'api/user_management/auth/verifySandBox' with body data {phone_number, otp}

and then submit form with other profile data, it will updated('profile_update')

if user set 2fa method as Sms, it will send otp with sms from login backend