summaryrefslogtreecommitdiff
path: root/FS/FS/ClientAPI/MyAccount
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2015-11-19 14:52:42 -0800
committerMark Wells <mark@freeside.biz>2015-11-20 14:53:00 -0800
commit9867909c4592db1331712af78c772c1f1a8d2090 (patch)
treef4aba164e49c93b5174f2fbe47b809d8f5325a6f /FS/FS/ClientAPI/MyAccount
parent5d96e15a61121e8e0c4479363d6a612e702a10da (diff)
password policy enforcement for contacts, #32456
Diffstat (limited to 'FS/FS/ClientAPI/MyAccount')
-rw-r--r--FS/FS/ClientAPI/MyAccount/contact.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/FS/FS/ClientAPI/MyAccount/contact.pm b/FS/FS/ClientAPI/MyAccount/contact.pm
index ff29079..c893c10 100644
--- a/FS/FS/ClientAPI/MyAccount/contact.pm
+++ b/FS/FS/ClientAPI/MyAccount/contact.pm
@@ -33,6 +33,8 @@ sub contact_passwd {
$error = 'Password too long.'
if length($p->{'new_password'}) > ($conf->config('passwordmax') || 8);
+ $error ||= $contact->is_password_allowed($p->{'new_password'});
+
$error ||= $contact->change_password($p->{'new_password'});
return { 'error' => $error };