summaryrefslogtreecommitdiff
path: root/FS/FS/Auth
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2015-11-19 16:38:13 -0800
committerMark Wells <mark@freeside.biz>2015-11-20 14:53:10 -0800
commit1ed7b05956d7a2914d10728146fefee41362c867 (patch)
tree790e5f93cdcb235585a7d0def518bda92a723e6e /FS/FS/Auth
parent9867909c4592db1331712af78c772c1f1a8d2090 (diff)
password policy enforcement for access_users, #32456
Diffstat (limited to 'FS/FS/Auth')
-rw-r--r--FS/FS/Auth/internal.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/FS/FS/Auth/internal.pm b/FS/FS/Auth/internal.pm
index f6d1a00..eea4870 100644
--- a/FS/FS/Auth/internal.pm
+++ b/FS/FS/Auth/internal.pm
@@ -47,6 +47,9 @@ sub autocreate { 0; }
sub change_password {
my($self, $access_user, $new_password) = @_;
+ # do nothing if the password is unchanged
+ return if $self->authenticate( $access_user, $new_password );
+
$self->change_password_fields( $access_user, $new_password );
$access_user->replace;