[freeside-commits] freeside/httemplate/edit/process svc_acct.cgi, 1.12, 1.13
Mark Wells
mark at wavetail.420.am
Tue Dec 22 16:30:16 PST 2009
Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail.420.am:/tmp/cvs-serv10081/httemplate/edit/process
Modified Files:
svc_acct.cgi
Log Message:
Tweak set_password per RT#6358
Index: svc_acct.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/svc_acct.cgi,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- svc_acct.cgi 12 Nov 2009 21:45:07 -0000 1.12
+++ svc_acct.cgi 23 Dec 2009 00:30:14 -0000 1.13
@@ -11,6 +11,7 @@
$cgi->param('svcnum') =~ /^(\d*)$/ or die "Illegal svcnum!";
my $svcnum = $1;
+my $error;
my $old;
if ( $svcnum ) {
@@ -45,10 +46,9 @@
die "fatal: no previous account to recall hidden password from!" unless $old;
}
else {
- $new->set_password($cgi->param('clear_password'));
+ $error = $new->set_password($cgi->param('clear_password'));
}
-my $error;
if ( $svcnum ) {
foreach (grep { $old->$_ != $new->$_ } qw( seconds upbytes downbytes totalbytes )) {
my %hash = map { $_ => $new->$_ }
More information about the freeside-commits
mailing list