aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/passwords/driver/driver_interface.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2014-06-11 14:27:57 +0200
committerNils Adermann <naderman@naderman.de>2014-06-11 14:27:57 +0200
commit694f8391c9d3a948159ea2564e6bf4c606eb4053 (patch)
treea8aedc3999eb93513c7e6e8f1f83fbaa342feea5 /phpBB/phpbb/passwords/driver/driver_interface.php
parente1f371d14a0db43d4784bc047ad3929ec844697e (diff)
parentac311e1b39f891ba3c137f6203981c491639bec3 (diff)
downloadforums-694f8391c9d3a948159ea2564e6bf4c606eb4053.tar
forums-694f8391c9d3a948159ea2564e6bf4c606eb4053.tar.gz
forums-694f8391c9d3a948159ea2564e6bf4c606eb4053.tar.bz2
forums-694f8391c9d3a948159ea2564e6bf4c606eb4053.tar.xz
forums-694f8391c9d3a948159ea2564e6bf4c606eb4053.zip
Merge remote-tracking branch 'github-marc1706/ticket/12352' into develop-ascraeus
* github-marc1706/ticket/12352: (33 commits) [ticket/12352] Do not check hashes that don't have the necessary length [ticket/12352] Update file headers to fit new format [ticket/12352] Use custom provider collection for auth providers [ticket/12352] Add checks for existing user_pass_convert to migrations [ticket/12352] Remove usages of user_pass_convert column [ticket/12352] Update schema json file [ticket/12352] Remove user_pass_convert column from database [ticket/12352] Check each newly added passwords driver in manager_test [ticket/12352] Add get_settings_only method to passwords driver base [ticket/12352] Add passwords driver for xenforo 1.0, 1.1 passwords [ticket/12352] Add tests for wcf1 and wcf2 drivers [ticket/12352] Add driver for woltlab community framework 1 passwords [ticket/12352] Add driver for woltlab community framework 2 passwords [ticket/12352] Add missing $ to md5_mybb and md5_vb driver [ticket/12352] Fix spacing in passwords tests [ticket/12352] Add passwords driver for vB passwords [ticket/12352] Use correct hashing method in md5_mybb driver [ticket/12352] Add driver for myBB md5 passwords [ticket/12352] Rename phpbb2_md5 driver to fit filenames of other drivers [ticket/12352] Add passwords driver for sha1 password hashes ...
Diffstat (limited to 'phpBB/phpbb/passwords/driver/driver_interface.php')
-rw-r--r--phpBB/phpbb/passwords/driver/driver_interface.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/phpBB/phpbb/passwords/driver/driver_interface.php b/phpBB/phpbb/passwords/driver/driver_interface.php
index 54c9d6500e..a257e71f23 100644
--- a/phpBB/phpbb/passwords/driver/driver_interface.php
+++ b/phpBB/phpbb/passwords/driver/driver_interface.php
@@ -23,6 +23,13 @@ interface driver_interface
public function is_supported();
/**
+ * Check if hash type is a legacy hash type
+ *
+ * @return bool True if it's a legacy hash type, false if not
+ */
+ public function is_legacy();
+
+ /**
* Returns the hash prefix
*
* @return string Hash prefix
@@ -44,10 +51,11 @@ interface driver_interface
*
* @param string $password The password to check
* @param string $hash The password hash to check against
+ * @param string $user_row User's row in users table
*
* @return bool True if password is correct, else false
*/
- public function check($password, $hash);
+ public function check($password, $hash, $user_row = array());
/**
* Get only the settings of the specified hash