Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

How to # with both username or email using django-authtools? #73

Open
aswinkp opened this issue Apr 4, 2017 · 3 comments
Open

How to # with both username or email using django-authtools? #73

aswinkp opened this issue Apr 4, 2017 · 3 comments

Comments

@aswinkp
Copy link

aswinkp commented Apr 4, 2017

I want users to signin with either username or email address. I did not see anything in documentation regarding this. Is this possible with django-authtools ?

@arocks
Copy link
Owner

arocks commented Apr 13, 2017

@aswinkp Edge currently uses django-authtools User class defined here. As you can see the email address acts like a primary key to the User model by being unique. If I were to change it to include username as well, I would start here and add the username field as well.

You will need to think of some design considerations like which will be the unique field and what happens when users don't # with a username. I think django-allauth implements a solution for this.

@oyeyipo
Copy link

oyeyipo commented Jan 10, 2018

so, what do you suggest in other to make this possible

@arocks
Copy link
Owner

arocks commented Jan 14, 2018

Hi @MegaWale

If you mean how to start working on just adding username, I would start with looking at Django's AbstractUser implementation. If you are looking for django-allauth along with social authentication, then it might be seen in a future release but it would take significant refactoring.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants