File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -48,11 +48,11 @@ class AbstractEmailUser(AbstractUser):
4848 email = CIEmailField (_ ('email address' ), unique = True , db_index = True )
4949 """The field is unique and case insensitive to serve as a better username."""
5050
51+ # Salt for the session hash replacing the password in this function.
5152 session_salt = models .CharField (
5253 max_length = 12 , editable = False ,
5354 default = get_random_string ,
5455 )
55- """Salt for the session hash replacing the password in this function."""
5656
5757 def has_usable_password (self ):
5858 return False
@@ -63,7 +63,7 @@ class Meta(AbstractUser.Meta):
6363 abstract = True
6464
6565 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."""
6767 key_salt = "mailauth.contrib.user.models.EmailUserManager.get_session_auth_hash"
6868 if not self .session_salt :
6969 raise ValueError ("'session_salt' must be set" )
You can’t perform that action at this time.
0 commit comments