[freeside-commits] branch FREESIDE_3_BRANCH updated. 8e1e8692ba886613c43f5f6287bd128c992e995a
Mark Wells
mark at 420.am
Wed Nov 18 00:12:52 PST 2015
The branch, FREESIDE_3_BRANCH has been updated
via 8e1e8692ba886613c43f5f6287bd128c992e995a (commit)
from 35b7549909f4657367a8f252172e11b7d6c7d958 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 8e1e8692ba886613c43f5f6287bd128c992e995a
Author: Mark Wells <mark at freeside.biz>
Date: Tue Nov 17 22:14:57 2015 -0800
fix setting passwords on newly created svc_accts, from #29354
diff --git a/httemplate/edit/process/svc_acct.cgi b/httemplate/edit/process/svc_acct.cgi
index d75ff92..17a035c 100755
--- a/httemplate/edit/process/svc_acct.cgi
+++ b/httemplate/edit/process/svc_acct.cgi
@@ -82,7 +82,7 @@ if ( $cgi->param('clear_password') eq '*HIDDEN*'
die "fatal: no previous account to recall hidden password from!" unless $old;
} else {
my $newpass = $cgi->param('clear_password');
- if ( ! $old->check_password($newpass) ) {
+ if ( !$old or ! $old->check_password($newpass) ) {
# then the password is being changed
$error ||= $new->is_password_allowed($newpass)
|| $new->set_password($newpass);
-----------------------------------------------------------------------
Summary of changes:
httemplate/edit/process/svc_acct.cgi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
More information about the freeside-commits
mailing list