SMS_OTP_SIGNITURE
This commit is contained in:
parent
85b96d5d66
commit
a7a0dcde38
1 changed files with 1 additions and 1 deletions
|
|
@ -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 = f"رمزیکبارمصرف: {body}\n {settings.SMS_OTP_SIGNITURE}"
|
||||
message = f"رمزیکبارمصرف: {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