SMS_OTP_SIGNITURE

This commit is contained in:
Sayyid Hamid Mahdavi 2025-09-16 13:49:59 +03:30
parent 7d4f2cd28a
commit 85b96d5d66
2 changed files with 2 additions and 1 deletions

View file

@ -269,6 +269,7 @@ PAYAM_SMS_USERNAME = config('PAYAM_SMS_USERNAME')
PAYAM_SMS_PASSWORD = config('PAYAM_SMS_PASSWORD')
PAYAM_SMS_CLIENT_ID = config('PAYAM_SMS_CLIENT_ID')
PAYAM_SMS_CLIENT_SECRET = config('PAYAM_SMS_CLIENT_SECRET')
SMS_OTP_SIGNITURE = config('SMS_OTP_SIGNITURE', '')
CACHES = {

View file

@ -224,7 +224,7 @@ class User(AbstractUser):
self.notify(body=str(self.otp), title='OTP')
def notify(self, body, title=None, notification_type='sms'):
message = "رمزیکبارمصرف: " + body + '\n qAoVML7kJEr'
message = f"رمزیکبارمصرف: {body}\n {settings.SMS_OTP_SIGNITURE}"
send_sms(self.phone_number.strip('+'), message)
return
# TODO: enable celery