(20250303) Phone no. adjusted for client add with notes.

This commit is contained in:
2025-03-03 15:33:46 +05:30
parent 5f43609839
commit 815c02dc83
+3 -2
View File
@@ -357,8 +357,9 @@ async def verify_otp(
pattern = r"[^\d]",
substitute_text = ""
)
if not phone_no.startswith("254"): phone_no = "254" + phone_no
phone_no = "+" + phone_no
if phone_no.startswith("254"): phone_no = phone_no[3:]
if phone_no.startswith("0"): phone_no = phone_no[1:]
phone_no = "+254" + phone_no
print("CLEANED PHONE NO.:", phone_no)
# hit Omkar's API: