projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add skip_dcontext_suffix to skip CDRs with dcontext ending in a definable string...
[freeside.git]
/
FS
/
FS
/
Auth
/
internal.pm
diff --git
a/FS/FS/Auth/internal.pm
b/FS/FS/Auth/internal.pm
index
f6d1a00
..
eea4870
100644
(file)
--- 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) = @_;
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;
$self->change_password_fields( $access_user, $new_password );
$access_user->replace;