fix employee pw change, RT#79010, RT#32456
[freeside.git] / FS / FS / Auth / internal.pm
index f6d1a00..dfc5f30 100644 (file)
@@ -47,6 +47,11 @@ sub autocreate { 0; }
 sub change_password {
   my($self, $access_user, $new_password) = @_;
 
+  # do nothing if the password is unchanged
+  #XXX breaks password changes in employee edit ($access_user object already
+  # has new [plaintext] password)
+  #return if $self->authenticate( $access_user, $new_password );
+
   $self->change_password_fields( $access_user, $new_password );
 
   $access_user->replace;