SMS_OTP_SIGNITURE
This commit is contained in:
parent
7d4f2cd28a
commit
85b96d5d66
2 changed files with 2 additions and 1 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue