diff options
author | Igor Wiedler <igor@wiedler.ch> | 2011-03-17 23:59:38 +0100 |
---|---|---|
committer | Igor Wiedler <igor@wiedler.ch> | 2011-03-17 23:59:38 +0100 |
commit | f8384b7302ca27aec0064f7d927a732e4e4552da (patch) | |
tree | 4175826efe206c46047cf97438613107e25a7055 | |
parent | 784132d7e870e59b9cfa2b7cce4828d817270867 (diff) | |
download | forums-f8384b7302ca27aec0064f7d927a732e4e4552da.tar forums-f8384b7302ca27aec0064f7d927a732e4e4552da.tar.gz forums-f8384b7302ca27aec0064f7d927a732e4e4552da.tar.bz2 forums-f8384b7302ca27aec0064f7d927a732e4e4552da.tar.xz forums-f8384b7302ca27aec0064f7d927a732e4e4552da.zip |
[ticket/10101] Add support for native phpass hashes
phpass (the hashing library we use) adds a hash identifier to every
hash. By default this identifier is '$P$'. For some reason we have
changed it to '$H$'.
This patch allows both of them to be used for authentication, so that a
third party system could create users with '$P$' hashes.
PHPBB3-10101
-rw-r--r-- | phpBB/includes/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 2fc7ca6903..d6330f6d85 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -516,7 +516,7 @@ function _hash_crypt_private($password, $setting, &$itoa64) $output = '*'; // Check for correct hash - if (substr($setting, 0, 3) != '$H$') + if (substr($setting, 0, 3) != '$H$' && substr($setting, 0, 3) != '$P$') { return $output; } |