[freeside-commits] branch FREESIDE_4_BRANCH updated. 5cefbed5efe178a3ebfad31688bfd38bd4cfa129

Mark Wells mark at 420.am
Wed Nov 18 00:12:53 PST 2015


The branch, FREESIDE_4_BRANCH has been updated
       via  5cefbed5efe178a3ebfad31688bfd38bd4cfa129 (commit)
      from  19c15c33d5f411193205f44138bbdc9d0d40b0ff (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 5cefbed5efe178a3ebfad31688bfd38bd4cfa129
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