diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2016-01-05 22:19:26 -0600 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2016-01-05 22:26:04 -0600 |
commit | e32f1ceeb6f267ab6d3279bf350d192d4bf1a72e (patch) | |
tree | 79edd38d8b811002386ce2a69f46cb960ceecbf8 /FS/FS/ClientAPI/MyAccount | |
parent | 1667ab631f9fbd0f4ceeb6ec000b0f4ff3ddb51a (diff) |
RT#39481: Password Maximum Length
Diffstat (limited to 'FS/FS/ClientAPI/MyAccount')
-rw-r--r-- | FS/FS/ClientAPI/MyAccount/contact.pm | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/FS/FS/ClientAPI/MyAccount/contact.pm b/FS/FS/ClientAPI/MyAccount/contact.pm index c893c10..dd3a40b 100644 --- a/FS/FS/ClientAPI/MyAccount/contact.pm +++ b/FS/FS/ClientAPI/MyAccount/contact.pm @@ -26,12 +26,7 @@ sub contact_passwd { my $error = ''; - # use these svc_acct length restrictions?? - my $conf = new FS::Conf; - $error = 'Password too short.' - if length($p->{'new_password'}) < ($conf->config('passwordmin') || 6); - $error = 'Password too long.' - if length($p->{'new_password'}) > ($conf->config('passwordmax') || 8); + # length checks now in is_password_allowed $error ||= $contact->is_password_allowed($p->{'new_password'}); |