summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/Users.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-05-15 15:35:54 +0200
committerYorhel <git@yorhel.nl>2019-05-15 15:35:56 +0200
commita193e240f5ea41509276ede529c68642af2ec656 (patch)
tree1a0618bc973e9613af7a50baa21425a0594378df /lib/VNDB/Handler/Users.pm
parentababd071579d44252e9c61fa10ee8cc7abd97e57 (diff)
Loosen restrictions on passwords a bit
Maximum length increased from 64 to 500 characters, and all Unicode characters are now allowed.
Diffstat (limited to 'lib/VNDB/Handler/Users.pm')
-rw-r--r--lib/VNDB/Handler/Users.pm12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/VNDB/Handler/Users.pm b/lib/VNDB/Handler/Users.pm
index d1f0df93..56664443 100644
--- a/lib/VNDB/Handler/Users.pm
+++ b/lib/VNDB/Handler/Users.pm
@@ -175,7 +175,7 @@ sub login {
return if !$self->authCheckCode;
$frm = $self->formValidate(
{ post => 'usrname', required => 1, minlength => 2, maxlength => 15 },
- { post => 'usrpass', required => 1, minlength => 4, maxlength => 64, template => 'ascii' },
+ { post => 'usrpass', required => 1, minlength => 4, maxlength => 500 },
);
if(!$frm->{_err}) {
@@ -277,8 +277,8 @@ sub setpass {
if($self->reqMethod eq 'POST') {
return if !$self->authCheckCode("/u$u->{id}/setpass?t=$t");
$frm = $self->formValidate(
- { post => 'usrpass', minlength => 4, maxlength => 64, template => 'ascii' },
- { post => 'usrpass2', minlength => 4, maxlength => 64, template => 'ascii' },
+ { post => 'usrpass', minlength => 4, maxlength => 500 },
+ { post => 'usrpass2', minlength => 4, maxlength => 500 },
);
push @{$frm->{_err}}, 'Passwords do not match' if $frm->{usrpass} ne $frm->{usrpass2};
@@ -397,9 +397,9 @@ sub edit {
{ post => 'ign_votes', required => 0, default => 0 },
) : (),
{ post => 'mail', template => 'email' },
- { post => 'curpass', required => 0, minlength => 4, maxlength => 64, template => 'ascii', default => '' },
- { post => 'usrpass', required => 0, minlength => 4, maxlength => 64, template => 'ascii' },
- { post => 'usrpass2', required => 0, minlength => 4, maxlength => 64, template => 'ascii' },
+ { post => 'curpass', required => 0, minlength => 4, maxlength => 500, default => '' },
+ { post => 'usrpass', required => 0, minlength => 4, maxlength => 500 },
+ { post => 'usrpass2', required => 0, minlength => 4, maxlength => 500 },
{ post => 'hide_list', required => 0, default => 0, enum => [0,1] },
{ post => 'show_nsfw', required => 0, default => 0, enum => [0,1] },
{ post => 'traits_sexual', required => 0, default => 0, enum => [0,1] },