diff --git a/api/blueprints/common/otp/timed_otp.py b/api/blueprints/common/otp/timed_otp.py index e0bb4f8..7ec82b1 100644 --- a/api/blueprints/common/otp/timed_otp.py +++ b/api/blueprints/common/otp/timed_otp.py @@ -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,