feat(login password ecrypt): 登录密码加密传输

This commit is contained in:
Bai
2020-06-30 17:12:38 +08:00
parent fdcda83c93
commit 71ee33e3be
7 changed files with 152 additions and 7 deletions

View File

@@ -10,7 +10,7 @@ class UserLoginForm(forms.Form):
username = forms.CharField(label=_('Username'), max_length=100)
password = forms.CharField(
label=_('Password'), widget=forms.PasswordInput,
max_length=128, strip=False
max_length=1024, strip=False
)
def confirm_login_allowed(self, user):