@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | |
| 42 | 42 | $this->portable_hashes = $portable_hashes; |
| 43 | 43 | |
| 44 | - $this->random_state = microtime() . uniqid(rand(), TRUE); |
|
| 44 | + $this->random_state = microtime() . uniqid(rand(), true); |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | private function get_random_bytes($count) |
@@ -140,9 +140,9 @@ discard block |
||
| 140 | 140 | # consequently in lower iteration counts and hashes that are |
| 141 | 141 | # quicker to crack (by non-PHP code). |
| 142 | 142 | if (PHP_VERSION >= '5') { |
| 143 | - $hash = md5($salt . $password, TRUE); |
|
| 143 | + $hash = md5($salt . $password, true); |
|
| 144 | 144 | do { |
| 145 | - $hash = md5($hash . $password, TRUE); |
|
| 145 | + $hash = md5($hash . $password, true); |
|
| 146 | 146 | } while (--$count); |
| 147 | 147 | } else { |
| 148 | 148 | $hash = pack('H*', md5($salt . $password)); |
@@ -226,7 +226,7 @@ |
||
| 226 | 226 | if (!empty($_POST['otp_token'])) |
| 227 | 227 | { |
| 228 | 228 | require_once(EXTDIR . '/GoogleAuthenticator.php'); |
| 229 | - $ga = New GoogleAuthenticator(); |
|
| 229 | + $ga = new GoogleAuthenticator(); |
|
| 230 | 230 | |
| 231 | 231 | $ga->getCode($user_settings['otp_secret']); |
| 232 | 232 | $checkResult = $ga->verifyCode($user_settings['otp_secret'], $_POST['otp_token'], 2); |