File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -48,11 +48,11 @@ class AbstractEmailUser(AbstractUser):
48
48
email = CIEmailField (_ ('email address' ), unique = True , db_index = True )
49
49
"""The field is unique and case insensitive to serve as a better username."""
50
50
51
+ # Salt for the session hash replacing the password in this function.
51
52
session_salt = models .CharField (
52
53
max_length = 12 , editable = False ,
53
54
default = get_random_string ,
54
55
)
55
- """Salt for the session hash replacing the password in this function."""
56
56
57
57
def has_usable_password (self ):
58
58
return False
@@ -63,7 +63,7 @@ class Meta(AbstractUser.Meta):
63
63
abstract = True
64
64
65
65
def get_session_auth_hash (self ):
66
- """Return an HMAC of the session_salt field."""
66
+ """Return an HMAC of the :attr:`. session_salt` field."""
67
67
key_salt = "mailauth.contrib.user.models.EmailUserManager.get_session_auth_hash"
68
68
if not self .session_salt :
69
69
raise ValueError ("'session_salt' must be set" )
You can’t perform that action at this time.
0 commit comments