Use Email to Login With Django Auth

2018-11-01 Thread Ryan Shepard
How could i go about allowing people to also use their email to sign into Django instead of a username? I have done research my self and tried creating my own backend for it. But it doesn't work. -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Use Email to Login With Django Auth

2018-11-01 Thread ansh srivastav
Your question is not clear, please be a bit specific. [image: Mailtrack] Sender notified by Mailtrack 11/01

Re: Use Email to Login With Django Auth

2018-11-01 Thread Mikhailo Keda
use email as username) check this code - https://bitbucket.org/voron-raven/chat/src/1073edbed7700a5bea87bf5b9c08297e7db57af6/core/views.py#lines-267:283 and modify POST to set email as username -- You received this message because you are subscribed to the Google Groups "Django users" group. T

Re: Use Email to Login With Django Auth

2018-11-01 Thread Andrew Pinkham
You may be interested in django-improved-user, as it provides an email-based User model. https://pypi.org/project/django-improved-user/ Full disclosure: I am one of the original authors. If you have any trouble with the package or documentation, please open an issue! Andrew https://jambonsw.co

Re: Use Email to Login With Django Auth

2018-11-01 Thread Deb Das
You can query for the given email and get the username, then getting the username do normal Django authentication. On Thu 1 Nov, 2018, 5:39 PM Ryan Shepard How could i go about allowing people to also use their email to sign into > Django instead of a username? I have done research my self and tr

Re: Use Email to Login With Django Auth

2018-11-01 Thread maunish dave
Do not use django login authentication instead make your own authentication page On Fri 2 Nov, 2018, 12:12 AM Deb Das, wrote: > You can query for the given email and get the username, then getting the > username do normal Django authentication. > > On Thu 1 Nov, 2018, 5:39 PM Ryan Shepard >> Ho

Re: Use Email to Login With Django Auth

2018-11-01 Thread Ryan Shepard
That helps a bunch, thank you! On Thursday, November 1, 2018 at 12:44:20 PM UTC-5, Andrew Pinkham wrote: > > You may be interested in django-improved-user, as it provides an > email-based User model. > > https://pypi.org/project/django-improved-user/ > > Full disclosure: I am one of the origina

Re: Use Email to Login With Django Auth

2018-11-01 Thread Timothy Cook
I use this and it works great. https://django-allauth.readthedocs.io/en/latest/installation.html On Thu, Nov 1, 2018 at 9:08 AM Ryan Shepard wrote: > How could i go about allowing people to also use their email to sign into > Django instead of a username? I have done research my self and tried

Re: Use Email to Login With Django Auth

2018-11-02 Thread Derek
And here's a helpful blog post walking you through the basics: https://simpleisbetterthancomplex.com/tutorial/2016/10/24/how-to-add-social-login-to-django.html On Thursday, 1 November 2018 23:54:56 UTC+2, Timothy Cook wrote: > > I use this and it works great. > https://django-allauth.readthedocs.

Re: Use Email to Login With Django Auth

2018-11-02 Thread Anirudh Jain
Use django allauth library. It's great. On Thu, 1 Nov 2018, 17:39 Ryan Shepard How could i go about allowing people to also use their email to sign into > Django instead of a username? I have done research my self and tried > creating my own backend for it. But it doesn't work. > > -- > You recei

Re: Use Email to Login With Django Auth

2018-11-02 Thread William Vincent
As others have noted, the short answer is use django-allauth. Here's a basic implementation that might help: https://github.com/wsvincent/djangox. On Thursday, November 1, 2018 at 8:09:13 AM UTC-4, Ryan Shepard wrote: > > How could i go about allowing people to also use their email to sign into

Re: Use Email to Login With Django Auth

2018-11-02 Thread Anirudh Jain
Hey William Is it you who runs the website wsvincent.com ? Great stuff you have out there. Keep working man !! On Fri, 2 Nov 2018, 19:08 William Vincent As others have noted, the short answer is use django-allauth. Here's a > basic implementation that might help: https://github.com/wsvincent/dja

Re: Use Email to Login With Django Auth

2018-11-02 Thread William Vincent
Yes that's me. I'm actually procrastinating on my book by writing up an example of login with email right now. Look for it shortly... Thanks for the kind words. On Friday, November 2, 2018 at 9:43:23 AM UTC-4, Anirudh Jain wrote: > > Hey William > > Is it you who runs the website wsvincent.com ?

Re: Use Email to Login With Django Auth

2018-11-02 Thread William Vincent
Here you go: https://wsvincent.com/django-login-with-email-not-username/. On Thursday, November 1, 2018 at 8:09:13 AM UTC-4, Ryan Shepard wrote: > > How could i go about allowing people to also use their email to sign into > Django instead of a username? I have done research my self and tried >