@
> 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
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
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
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
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
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
6 matches
Mail list logo