Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

there is no possibility use custom sms sender #25

Open
Nemo-Illusionist opened this issue Mar 21, 2019 · 4 comments
Open

there is no possibility use custom sms sender #25

Nemo-Illusionist opened this issue Mar 21, 2019 · 4 comments

Comments

@Nemo-Illusionist
Copy link

I want to use SMS sender of another service.
for example: smsc.ru

@param211
Copy link

did you find a way to do this?

@Nemo-Illusionist
Copy link
Author

not

@bigfat130397
Copy link

I have just seen this after comment on issue #95 ,

This is possible by mentioning a specific function in configuration, just replace the below value to your function name and it will work

'PASSWORDLESS_SMS_CALLBACK': 'drfpasswordless.utils.send_sms_with_callback_token'

for example in my project with app named testapp in views.py my customized function named send_sms_code then my value would be:

'PASSWORDLESS_SMS_CALLBACK': 'testapp.views.send_sms_code'

@jaymes15
Copy link

@bigfat130397 answer is correct. I tried it and it worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants