X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FAuth%2Finternal.pm;h=dfc5f301d768ab162dd1a22fdb4906920f322c9c;hb=02d73ef84103d6bdaf49e6a179a0ad46f9719d25;hp=bb116ce758401f2409243b11e2eb06c3d9d27f03;hpb=120718856665ca90ad852535d1155f8ea8ecb6b6;p=freeside.git diff --git a/FS/FS/Auth/internal.pm b/FS/FS/Auth/internal.pm index bb116ce75..dfc5f301d 100644 --- a/FS/FS/Auth/internal.pm +++ b/FS/FS/Auth/internal.pm @@ -42,9 +42,16 @@ sub authenticate { } +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;