sms content
This commit is contained in:
parent
f2dcaafa01
commit
9fb595909e
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue