mirror of
https://github.com/django/django.git
synced 2025-10-25 22:56:12 +00:00
Fixed #5605: only lowercase the domain portion of an email address in UserManager.create_user.
Thanks, Leo. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12641 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -219,4 +219,13 @@ True
|
||||
>>> form.cleaned_data['email']
|
||||
u'jsmith3@example.com'
|
||||
|
||||
# bug #5605, preserve the case of the user name (before the @ in the email address)
|
||||
# when creating a user.
|
||||
>>> user = User.objects.create_user('test2', 'tesT@EXAMple.com', 'test')
|
||||
>>> user.email
|
||||
'tesT@example.com'
|
||||
>>> user = User.objects.create_user('test3', 'tesT', 'test')
|
||||
>>> user.email
|
||||
'tesT'
|
||||
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user