pennersr / django-allauth

Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication.
https://allauth.org
MIT License
9.37k stars 3.01k forks source link

I want to use mobile number on login and forgot password #1365

Closed sanchig closed 8 years ago

sanchig commented 8 years ago

I want to use Mobile Number instead of Username or Email. Now a days user want to use mobile number for login and forgot password (we are using SMS api so we are sending otp and then user can register and login. ex. paytm.com login. we need to set sms api settings in setting.py file). I have done this in my frontend but it is not at best. I am doing get Username using mobile number in backend and then pass it to login url. whatever it is not best practice. Can you please add this functionality to this django-allauth package. so other developer can use this too. Please give me suggestion if already implemented.

pennersr commented 8 years ago

For now, I won't be supporting this out of the box. Such a feature can easily grow out of hand, ideally you would want to store phone numbers, but also device IDs of users and such. You should be able to build this on top of allauth though.