just for test
This commit is contained in:
parent
7ebfd9f472
commit
3f106ecd1b
2 changed files with 8 additions and 7 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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'])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue