[freeside-commits] freeside/FS/FS access_user.pm,1.13,1.14
Ivan,,,
ivan at wavetail.420.am
Fri Jan 26 00:17:38 PST 2007
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail:/tmp/cvs-serv24297
Modified Files:
access_user.pm
Log Message:
spurious password changes bad...
Index: access_user.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/access_user.pm,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- access_user.pm 26 Jan 2007 08:04:36 -0000 1.13
+++ access_user.pm 26 Jan 2007 08:17:36 -0000 1.14
@@ -200,10 +200,12 @@
local $FS::UID::AutoCommit = 0;
my $dbh = dbh;
- my $error = $new->htpasswd_kludge();
- if ( $error ) {
- $dbh->rollback or die $dbh->errstr if $oldAutoCommit;
- return $error;
+ if ( $new->_password ne $old->_password ) {
+ my $error = $new->htpasswd_kludge();
+ if ( $error ) {
+ $dbh->rollback or die $dbh->errstr if $oldAutoCommit;
+ return $error;
+ }
}
$error = $new->SUPER::replace($old, @_);
More information about the freeside-commits
mailing list