Add 'invalid' password hashing scheme
authorTim Düsterhus <duesterhus@woltlab.com>
Sun, 8 Mar 2015 17:30:56 +0000 (18:30 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Sun, 8 Mar 2015 17:38:45 +0000 (18:38 +0100)
wcfsetup/install/files/lib/util/PasswordUtil.class.php

index 6b6481b1108a81af686c2e73b6998ce787b525a6..013926e4169e420af47c99bf60f562127e89dc22 100644 (file)
@@ -50,6 +50,7 @@ final class PasswordUtil {
                'joomla2',      // Joomla 2.x
                'joomla3',      // Joomla 3.x
                'cryptMD5',
+               'invalid',      // Never going to match anything
        );
        
        /**
@@ -700,5 +701,18 @@ final class PasswordUtil {
                return false;
        }
        
+       /**
+        * Returns false.
+        * 
+        * @param       string          $username
+        * @param       string          $password
+        * @param       string          $salt
+        * @param       string          $dbHash
+        * @return      boolean
+        */
+       protected static function invalid($username, $password, $salt, $dbHash) {
+               return false;
+       }
+       
        private function __construct() { }
 }