diff options
author | Mark Wells <mark@freeside.biz> | 2015-11-17 22:14:57 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-11-18 00:11:54 -0800 |
commit | 5cefbed5efe178a3ebfad31688bfd38bd4cfa129 (patch) | |
tree | f6595c34a2ec9ef64465c740e6e95f1ec517ef28 | |
parent | 19c15c33d5f411193205f44138bbdc9d0d40b0ff (diff) |
fix setting passwords on newly created svc_accts, from #29354
-rwxr-xr-x | httemplate/edit/process/svc_acct.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/httemplate/edit/process/svc_acct.cgi b/httemplate/edit/process/svc_acct.cgi index d75ff92c1..17a035cdb 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); |