Re: Login with email or phone not username

2019-01-20 Thread Achyut Pandey
@ > On Sun, 6 Jan 2019 at 23:40, kaushik kumar roy > wrote: > Hi, > i think you can add a if condition in your view.py , stating if the username > matches to a regular expression for mobile or email. > if the regular expression matches the email you can go ahead calling the user > authenticate

Re: Login with email or phone not username

2019-01-07 Thread Manas Nikam
Add AccountKit integration https://www.accountkit.com/ into into app and add the authentication backend for the same On Sunday, January 6, 2019 at 7:37:50 AM UTC+5:30, Achyut Pandey wrote: > > > Hello guys i want to allow user to register and login with their email or > phone number instead of

Re: Login with email or phone not username

2019-01-06 Thread kaushik kumar roy
Hi, i think you can add a if condition in your view.py , stating if the username matches to a regular expression for mobile or email. if the regular expression matches the email you can go ahead calling the user authenticate method and pass the email. But if the regular expression matches for mobil

Re: Login with email or phone not username

2019-01-06 Thread Achyut Pandey
Thanks for your reply bro. Sent from my iPhone > On Jan 6, 2019, at 8:01 PM, Andréas Kühne wrote: > > Hi, > > You can find the information you need here: > https://docs.djangoproject.com/en/2.1/topics/auth/customizing/#django.contrib.auth.models.CustomUser > > Change the USERNAME_FIELD and y

Re: Login with email or phone not username

2019-01-06 Thread Andréas Kühne
Hi, You can find the information you need here: https://docs.djangoproject.com/en/2.1/topics/auth/customizing/#django.contrib.auth.models.CustomUser Change the USERNAME_FIELD and you are good to go! Regards, Andréas Den sön 6 jan. 2019 kl 03:07 skrev Achyut Pandey : > > Hello guys i want to

Login with email or phone not username

2019-01-05 Thread Achyut Pandey
Hello guys i want to allow user to register and login with their email or phone number instead of username . How can i do that i am extending user model with abstractuser. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from t