mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Limit maximum length of passwords to 4096 characters
This commit is contained in:
@@ -146,7 +146,8 @@ class NativeAuthBackend(BaseAuthBackend):
|
||||
d = OrderedDict([
|
||||
('email', forms.EmailField(label=_("E-mail"), max_length=254,
|
||||
widget=forms.EmailInput(attrs={'autofocus': 'autofocus'}))),
|
||||
('password', forms.CharField(label=_("Password"), widget=forms.PasswordInput)),
|
||||
('password', forms.CharField(label=_("Password"), widget=forms.PasswordInput,
|
||||
max_length=4096)),
|
||||
])
|
||||
return d
|
||||
|
||||
|
||||
Reference in New Issue
Block a user