(20250303) Added password during OTP verification.
This commit is contained in:
@@ -291,7 +291,7 @@ async def generate_otp(
|
|||||||
@handle_cancelled_request()
|
@handle_cancelled_request()
|
||||||
async def verify_otp(
|
async def verify_otp(
|
||||||
inbound_headers: dict = None,
|
inbound_headers: dict = None,
|
||||||
inbound_data: dict | VerifyTimedOTP = None,
|
inbound_data: dict | VerifyTimedOTPRequestData = None,
|
||||||
inbound_files: dict = None,
|
inbound_files: dict = None,
|
||||||
**kwargs
|
**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(
|
phone_no = regex.replace(
|
||||||
text = inbound_data.phoneNo,
|
text = inbound_data.phoneNo,
|
||||||
pattern = r"[^\d]",
|
pattern = r"[^\d]",
|
||||||
@@ -366,6 +366,7 @@ async def verify_otp(
|
|||||||
json = {
|
json = {
|
||||||
"email": inbound_data.email,
|
"email": inbound_data.email,
|
||||||
"clientName": inbound_data.username,
|
"clientName": inbound_data.username,
|
||||||
|
"password": inbound_data.password,
|
||||||
"address": None,
|
"address": None,
|
||||||
"phoneNo": phone_no,
|
"phoneNo": phone_no,
|
||||||
"city": None,
|
"city": None,
|
||||||
|
|||||||
Reference in New Issue
Block a user