just for test

This commit is contained in:
Sayyid Hamid Mahdavi 2020-09-14 16:44:08 +04:30
parent 7ebfd9f472
commit 3f106ecd1b
2 changed files with 8 additions and 7 deletions

View file

@ -169,6 +169,7 @@ class User(AbstractUser):
self.notify(body=str(self.otp), title='OTP ')
def notify(self, body, title= None, notification_type='sms'):
if settings.DEBUG:
print(service_client.notification.submit_notification(phone_number=self.phone_number,
title=title,
body=body,

View file

@ -7,4 +7,4 @@ service_client = Client(
client_secret=settings.CLIENT_SECRET,
grant_type=AccountsClient.GRANT_CLIENT_CREDENTIALS
)
service_client.login(scopes=['notification.notification:submit'])
# service_client.login(scopes=['notification.notification:submit'])