* @license GNU General Public License, version 2 (GPL-2.0) * * For full copyright and license information, please see * the docs/CREDITS.txt file. * */ namespace phpbb\passwords\driver; class sha1_wcf1 extends base { const PREFIX = '$wcf1$'; /** * {@inheritdoc} */ public function get_prefix() { return self::PREFIX; } /** * {@inheritdoc} */ public function is_legacy() { return true; } /** * {@inheritdoc} */ public function hash($password, $user_row = '') { // Do not support hashing return false; } /** * {@inheritdoc} */ public function check($password, $hash, $user_row = array()) { if (empty($hash) || strlen($hash) != 40 || !isset($user_row['user_passwd_salt'])) { return false; } else { // Works for standard WCF 1.x, i.e. WBB3 and similar return $this->helper->string_compare($hash, sha1($user_row['user_passwd_salt'] . sha1($user_row['user_passwd_salt'] . sha1($password)))); } } } ass='tabs'> aboutsummaryrefslogtreecommitdiffstats
path: root/template/en/default/bug
diff options
context:
space:
mode:
authortravis%sedsystems.ca <>2005-01-24 13:26:55 +0000
committertravis%sedsystems.ca <>2005-01-24 13:26:55 +0000
commit8a6f08e56e728f5df5321bb98dcfa8e86fcb9e97 (patch)
treeeb0b0df4257508aaaade7c117c13ba7cb1509ff1 /template/en/default/bug
parentcd6211de678a3638f2813332d436d6e4844d3d60 (diff)
downloadbugs-8a6f08e56e728f5df5321bb98dcfa8e86fcb9e97.tar
bugs-8a6f08e56e728f5df5321bb98dcfa8e86fcb9e97.tar.gz
bugs-8a6f08e56e728f5df5321bb98dcfa8e86fcb9e97.tar.bz2
bugs-8a6f08e56e728f5df5321bb98dcfa8e86fcb9e97.tar.xz
bugs-8a6f08e56e728f5df5321bb98dcfa8e86fcb9e97.zip