So I spend a little time fiddling around Django to understand what is possible 
and where there might be room for API improvements.

I went with the hardest possible way, NO password, NO username. Just one time 
passwords send via email or SMS. Similar to Django’s password reset function.

I published my work just now, https://django-mail-auth.rtfd.io. I would 
recommend to have a look at the custom EmailUser that I built. There are a 
couple of functions and fields that need to be overridden. BUT to my surprise 
even the management command “createsuperuser” worked.

Anyhow, I am curious to get a little bit of feedback to further investigate the 
different possibilities and implications this might have for Django’s 
authentication framework.
On 12. Apr 2019, 18:49 +0200, René Fleschenberg <r...@fleschenberg.net>, wrote:
> Hi
>
> > Also related: UserCreationForm by default allows usernames that differ
> > only by case
> > https://code.djangoproject.com/ticket/25617
>
> I would like to mention CITextField / CIEmailField here. It solves this
> problem nicely, in my experience.
>
> However, it is only available on Postgres, and it requires a database
> extension that in turn requires superuser access to the database to be
> installed.
>
> Do you think it would be realistically possible to have a CITextField
> that uses Postgres citext when available and falls back to Python in
> other cases?
>
> --
> René Fleschenberg
>
> --
> You received this message because you are subscribed to a topic in the Google 
> Groups "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/django-developers/d92P2V0YrbI/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> django-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to django-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-developers.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-developers/f91b347e-7fc9-f559-c5d4-e2c1124aadfd%40fleschenberg.net.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/ccd774f9-db56-4588-97e4-b44370539013%40Spark.
For more options, visit https://groups.google.com/d/optout.

Reply via email to