On Fri, Mar 9, 2012 at 20:01, Donald Stufft <donald.stu...@gmail.com> wrote: > The major issue is that there is no way to do schema migrations in core > (currently). So there's no way to handle increasing the length of the > username field.
I don't understand what the "username" field length has to do with it. And I think that's also the problem with Clay's original post: Do you want to authenticate against email or also change the User model? What if I want to authenticate against email but still have a username ("nick")? Another setting? An auth backend that checks against the email address (which is already in the User model just like username) _is_ simple. Rapid and simple would be to _ship_ such a backend in contrib.auth.backends. Then it would really just be a single setting (AUTHENTICATION_BACKENDS = ('django.contrib.auth.backends.EmailBackend',)). The only thing left would be the label on the login template in my naive understanding. (another one-liner I believe) So I agree it would be nice and useful, but where's the monkeypatching. If you want to authenticate against email _and_ take the "username" out of the model, it's that second part that's the problem. That's where I believe a set of settings and conditions is a kneejerk workaround. Cheers, Danny -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.