(20250303) Added password during OTP verification.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user