(20250303) Added password during OTP verification.

This commit is contained in:
2025-03-03 14:48:24 +05:30
parent 522da7793a
commit 3e7be926da
+3 -2
View File
@@ -291,7 +291,7 @@ async def generate_otp(
@handle_cancelled_request()
async def verify_otp(
inbound_headers: dict = None,
inbound_data: dict | VerifyTimedOTP = None,
inbound_data: dict | VerifyTimedOTPRequestData = None,
inbound_files: dict = None,
**kwargs
):
@@ -350,7 +350,7 @@ async def verify_otp(
# ┣┫┏┫┏┫ ┃ ┃┓┏┓┏┓╋ ┃┃┃┓╋┣┓ ┃┃┏┓╋┏┓┏
# ┛┗┗┻┗┻ ┗┛┗┗┗ ┛┗┗ ┗┻┛┗┗┛┗ ┛┗┗┛┗┗ ┛
# Fix the phone no. to have the country code:
# Fix the phone no. to have the country code:
phone_no = regex.replace(
text = inbound_data.phoneNo,
pattern = r"[^\d]",
@@ -366,6 +366,7 @@ async def verify_otp(
json = {
"email": inbound_data.email,
"clientName": inbound_data.username,
"password": inbound_data.password,
"address": None,
"phoneNo": phone_no,
"city": None,