Re: Login with email address, mobile number or username.

2018-04-19 Thread Andy
ieb lakshitha kumara: > > Hello Guys , > > what is the best way to implement Login with email address, mobile number > or username. all those field save as a different field in user table. user > can login with any criteria that user provided to registered. its look like > how

Login with email address, mobile number or username.

2018-04-19 Thread lakshitha kumara
Hello Guys , what is the best way to implement Login with email address, mobile number or username. all those field save as a different field in user table. user can login with any criteria that user provided to registered. its look like how instagram.com does it. i need know what is the best

Re: Login with email address

2015-11-04 Thread Russell Keith-Magee
On Wed, Nov 4, 2015 at 11:58 PM, victor menezes wrote: > I agree that it is time for django to change it (at least making the > changes easier) > I’m intrigued - exactly how much easier do you want us to make it? At this point, it is *literally* installing a third party app, adding that app to

Re: Login with email address

2015-11-04 Thread victor menezes
I agree that it is time for django to change it (at least making the changes easier). On my project I did create a new user model that inherit from AbstractUser class UserManager(BaseUserManager): ... class User(AbstractBaseUser): email = models.EmailField(unique=True) objects = UserManager() US

Re: Login with email address

2015-11-04 Thread Chesco Igual
Hi Patrick, I used emails "as usernames" many times in my projects. You can use django-authtools (https://github.com/fusionbox/django-authtools), it has an AbstractEmailUser (https://django-authtools.readthedocs.org/en/latest/intro.html#authtools.models.AbstractEmailUser). You can set your ow

Re: Login with email address

2015-11-04 Thread Dheerendra Rathor
By default emails are not unique in Django. There are several approaches you can use: 1. In your login view use email to fetch user and then call authenticate for username. For signup you can use any garbage username! 2. Write custom user model (Just extend User model and change USERNAME_FIELD to e

Login with email address

2015-11-04 Thread Patrick Breitenbach
Is there a current "best" approach or module for signup/login with an email address? I can't believe this is not included with django. In fact, it should be the default. 80-99% of services and projects do not use usernames. -- You received this message because you are subscribed to the Google