Set maximum password length of 256 in UserSettingsWebPage aswell.

This commit is contained in:
Relintai 2025-05-12 00:15:32 +02:00
parent be0ea55db8
commit 8bd3cfbf32

View File

@ -200,8 +200,9 @@ UserSettingsWebPage::UserSettingsWebPage() {
pw->ignore_if_not_exists(); pw->ignore_if_not_exists();
pw->need_to_have_lowercase_character()->need_to_have_uppercase_character(); pw->need_to_have_lowercase_character()->need_to_have_uppercase_character();
pw->need_minimum_length(5); pw->need_minimum_length(5);
pw->need_maximum_length(256);
_profile_validator->new_field("password_check", "Password check")->ignore_if_other_field_not_exists("password")->need_to_match("password"); _profile_validator->new_field("password_check", "Password check")->ignore_if_other_field_not_exists("password")->need_maximum_length(256)->need_to_match("password");
} }
UserSettingsWebPage::~UserSettingsWebPage() { UserSettingsWebPage::~UserSettingsWebPage() {