Skip to content

Commit

Permalink
remove a password log, corrected PHP version in log (ZoneMinder#2627)
Browse files Browse the repository at this point in the history
* remove a password log, corrected PHP version in log

* PHP version correction
  • Loading branch information
pliablepixels authored and connortechnology committed Jun 16, 2019
1 parent c4dc5f3 commit 98bf780
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions web/includes/actions/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
$pass_hash = '"'.password_hash($_REQUEST['newUser']['Password'], PASSWORD_BCRYPT).'"';
} else {
$pass_hash = ' PASSWORD('.dbEscape($_REQUEST['newUser']['Password']).') ';
ZM\Info('Cannot use bcrypt as you are using PHP < 5.5');
ZM\Info('Cannot use bcrypt as you are using PHP < 5.3');
}

if ( $_REQUEST['newUser']['Password'] ) {
Expand Down Expand Up @@ -70,7 +70,6 @@
}

if ( !empty($_REQUEST['newUser']['Password']) ) {
ZM\Info('PASS CMD='.$changes['Password']);
$changes['Password'] = 'Password = '.$pass_hash;
}

Expand Down

0 comments on commit 98bf780

Please sign in to comment.