mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-06-28 05:26:07 +00:00
Refactor send_otp function to remove unused otp parameter and improve clarity
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 2m35s
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 2m35s
This commit is contained in:
@ -8,7 +8,7 @@ api_url = str(config("SMS_API_URL", cast=str, default=""))
|
||||
api_key = str(config("SMS_API_KEY", cast=str, default=""))
|
||||
|
||||
|
||||
def send_otp(mobile: str, otp: str, message: str):
|
||||
def send_otp(mobile: str, message: str):
|
||||
if not api_url or not api_key:
|
||||
logger.debug("Failed to send SMS. Missing SMS_API_URL or SMS_API_KEY.")
|
||||
return False
|
||||
|
Reference in New Issue
Block a user