SMS_OTP_SIGNITURE

This commit is contained in:
Sayyid Hamid Mahdavi 2025-09-16 17:12:43 +03:30
parent 85b96d5d66
commit a7a0dcde38

View file

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