sms content

This commit is contained in:
Sayyid Hamid Mahdavi 2025-09-20 14:33:33 +03:30
parent f2dcaafa01
commit 9fb595909e

View file

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