We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b63227 commit e9ec853Copy full SHA for e9ec853
mailauth/contrib/user/models.py
@@ -48,11 +48,11 @@ class AbstractEmailUser(AbstractUser):
48
email = CIEmailField(_('email address'), unique=True, db_index=True)
49
"""The field is unique and case insensitive to serve as a better username."""
50
51
+ # Salt for the session hash replacing the password in this function.
52
session_salt = models.CharField(
53
max_length=12, editable=False,
54
default=get_random_string,
55
)
- """Salt for the session hash replacing the password in this function."""
56
57
def has_usable_password(self):
58
return False
@@ -63,7 +63,7 @@ class Meta(AbstractUser.Meta):
63
abstract = True
64
65
def get_session_auth_hash(self):
66
- """Return an HMAC of the session_salt field."""
+ """Return an HMAC of the :attr:`.session_salt` field."""
67
key_salt = "mailauth.contrib.user.models.EmailUserManager.get_session_auth_hash"
68
if not self.session_salt:
69
raise ValueError("'session_salt' must be set")
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments