diff options
author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2010-03-01 20:30:44 +0000 |
---|---|---|
committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2010-03-01 20:30:44 +0000 |
commit | 973bf6f4856ec3769398caa643ccc61dff4b19f4 (patch) | |
tree | 28061df48d0b47b575a4a79cb0d75f3069476fdb /docs/topics | |
parent | 8b2662c5de3cdb0926c7e48576a01cfcb07dfef6 (diff) | |
download | django-973bf6f4856ec3769398caa643ccc61dff4b19f4.tar.gz |
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
Diffstat (limited to 'docs/topics')
-rw-r--r-- | docs/topics/auth.txt | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/docs/topics/auth.txt b/docs/topics/auth.txt index 0ff2ee6f5e..ddf8c4834c 100644 --- a/docs/topics/auth.txt +++ b/docs/topics/auth.txt @@ -293,10 +293,13 @@ Manager functions .. method:: models.UserManager.create_user(username, email, password=None) Creates, saves and returns a :class:`~django.contrib.auth.models.User`. - The :attr:`~django.contrib.auth.models.User.username`, - :attr:`~django.contrib.auth.models.User.email` and - :attr:`~django.contrib.auth.models.User.password` are set as given, and the - :class:`~django.contrib.auth.models.User` gets ``is_active=True``. + + The :attr:`~django.contrib.auth.models.User.username` and + :attr:`~django.contrib.auth.models.User.password` are set as given. The + domain portion of :attr:`~django.contrib.auth.models.User.email` is + automatically convered to lowercase, and the returned + :class:`~django.contrib.auth.models.User` object will have + :attr:`~models.User.is_active` set to ``True``. If no password is provided, :meth:`~django.contrib.auth.models.User.set_unusable_password()` will |