mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-05-22 21:17:42 +02:00
Set maximum password length in UserRegisterWebPage just for good measure (256).
This commit is contained in:
parent
65ca03eacc
commit
03802d0047
@ -213,8 +213,9 @@ UserRegisterWebPage::UserRegisterWebPage() {
|
||||
pw->need_to_exist();
|
||||
pw->need_to_have_lowercase_character()->need_to_have_uppercase_character();
|
||||
pw->need_minimum_length(5);
|
||||
pw->need_maximum_length(256);
|
||||
|
||||
_registration_validator->new_field("password_check", "Password check")->need_to_match("password");
|
||||
_registration_validator->new_field("password_check", "Password check")->need_maximum_length(256)->need_to_match("password");
|
||||
|
||||
_registration_validator->new_field("email", "Email")->need_to_exist()->need_to_be_email();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user