1
0
mirror of https://github.com/django/django.git synced 2025-10-25 06:36:07 +00:00

Fixed #26615 -- Made password reset token invalidate when changing email.

Co-Authored-By: Silas Barta <sbarta@gmail.com>
This commit is contained in:
Jacob Walls
2016-05-15 18:54:03 -07:00
committed by Mariusz Felisiak
parent 7f9e4524d6
commit 0362b0e986
6 changed files with 39 additions and 11 deletions

View File

@@ -15,7 +15,7 @@ class CustomEmailFieldUserManager(BaseUserManager):
class CustomEmailField(AbstractBaseUser):
username = models.CharField(max_length=255)
password = models.CharField(max_length=255)
email_address = models.EmailField()
email_address = models.EmailField(null=True)
is_active = models.BooleanField(default=True)
EMAIL_FIELD = 'email_address'