Passed
Push — master ( d9e5dd...36764d )
by Spuds
01:07 queued 26s
created
sources/ext/PasswordHash.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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));
Please login to merge, or discard this patch.
sources/controllers/Auth.controller.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -226,7 +226,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.