From 31f2c148f79b0549a59d73cfaaacaf5ca9ac9380 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 19 Jul 2013 22:16:08 +0200 Subject: [PATCH] Fix formatting of PasswordUtil --- wcfsetup/install/files/lib/util/PasswordUtil.class.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/wcfsetup/install/files/lib/util/PasswordUtil.class.php b/wcfsetup/install/files/lib/util/PasswordUtil.class.php index ffade6e1f6..287df62f4e 100644 --- a/wcfsetup/install/files/lib/util/PasswordUtil.class.php +++ b/wcfsetup/install/files/lib/util/PasswordUtil.class.php @@ -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); -- 2.20.1