John Sutherland wrote:
> One thing of note is that e-mail address is not unique, however you > could set the username to be a hash of the e-mail address as the > username but this gets messy fast! We (well, my django-programming colleague) have done authentication by email address. For the username, we just use something like 'User123', and increment the number. The user never sees this, they just stick in their email and password and the view looks up the username. Email addresses are constrained to be unique when accounts are created. Note that not tying the Username to the Email address by either some substitution of @ signs or by a text hash means you can let your users change their email addresses without having to change their username. Of course you still have to check their new email address is unique in the database. Barry --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers -~----------~----~----~----~------~----~------~--~---
