aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/passwords
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2014-05-11 22:23:23 +0200
committerMarc Alexander <admin@m-a-styles.de>2014-06-01 21:31:04 +0200
commit1e758ba7f01fb07c2f497d755837bdce9bd57f18 (patch)
treebd288e8fe71af40ba694ace905e5d2eac7087c83 /phpBB/phpbb/passwords
parent57e4fb38106a3ece446b8713693f89c8745538dc (diff)
downloadforums-1e758ba7f01fb07c2f497d755837bdce9bd57f18.tar
forums-1e758ba7f01fb07c2f497d755837bdce9bd57f18.tar.gz
forums-1e758ba7f01fb07c2f497d755837bdce9bd57f18.tar.bz2
forums-1e758ba7f01fb07c2f497d755837bdce9bd57f18.tar.xz
forums-1e758ba7f01fb07c2f497d755837bdce9bd57f18.zip
[ticket/12352] Add passwords driver for passwords that should be converted
This driver will only be used for getting the new $CP$ prefix that will signal that the hash is a legacy hash that needs to be converted. PHPBB3-12352
Diffstat (limited to 'phpBB/phpbb/passwords')
-rw-r--r--phpBB/phpbb/passwords/driver/convert_password.php50
1 files changed, 50 insertions, 0 deletions
diff --git a/phpBB/phpbb/passwords/driver/convert_password.php b/phpBB/phpbb/passwords/driver/convert_password.php
new file mode 100644
index 0000000000..354c6b9ff3
--- /dev/null
+++ b/phpBB/phpbb/passwords/driver/convert_password.php
@@ -0,0 +1,50 @@
+<?php
+/**
+*
+* @package phpBB3
+* @copyright (c) 2014 phpBB Group
+* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
+*
+*/
+
+namespace phpbb\passwords\driver;
+
+/**
+* @package passwords
+*/
+class convert_password extends base
+{
+ const PREFIX = '$CP$';
+
+ /**
+ * @inheritdoc
+ */
+ public function get_prefix()
+ {
+ return self::PREFIX;
+ }
+
+ /**
+ * @inheritdoc
+ */
+ public function hash($password, $user_row = '')
+ {
+ return false;
+ }
+
+ /**
+ * @inheritdoc
+ */
+ public function check($password, $hash, $user_row = array())
+ {
+ return false;
+ }
+
+ /**
+ * @inheritdoc
+ */
+ public function get_settings_only($hash, $full = false)
+ {
+ return false;
+ }
+}