Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e9ec853

Browse files
Fix sphinx build error
1 parent 0b63227 commit e9ec853

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎mailauth/contrib/user/models.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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")

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /