django-rest-framework-passwordless
django-rest-framework-passwordless copied to clipboard
there is no possibility use custom sms sender
I want to use SMS sender of another service. for example: smsc.ru
did you find a way to do this?
not
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'
@bigfat130397 answer is correct. I tried it and it worked