Fix formatting of PasswordUtil
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 19 Jul 2013 20:16:08 +0000 (22:16 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 19 Jul 2013 20:16:08 +0000 (22:16 +0200)
wcfsetup/install/files/lib/util/PasswordUtil.class.php

index ffade6e1f6157c0434a731894257ab70531be1dc..287df62f4eb06a07a133289b6a62b5e89f4938b0 100644 (file)
@@ -296,8 +296,7 @@ final class PasswordUtil {
                        $output = '*';
                        
                        // Check for correct hash
-                       if (substr($setting, 0, 3) !== '$H$' && substr($setting, 0, 3) !== '$P$')
-                       {
+                       if (substr($setting, 0, 3) !== '$H$' && substr($setting, 0, 3) !== '$P$') {
                                return $output;
                        }
                        
@@ -315,8 +314,7 @@ final class PasswordUtil {
                        }
                        
                        $hash = md5($salt . $password, true);
-                       do
-                       {
+                       do {
                                $hash = md5($hash . $password, true);
                        }
                        while (--$count);