aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/passwords/driver/driver_interface.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/passwords/driver/driver_interface.php')
-rw-r--r--phpBB/phpbb/passwords/driver/driver_interface.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/phpbb/passwords/driver/driver_interface.php b/phpBB/phpbb/passwords/driver/driver_interface.php
index 3974484f13..6a660b80ea 100644
--- a/phpBB/phpbb/passwords/driver/driver_interface.php
+++ b/phpBB/phpbb/passwords/driver/driver_interface.php
@@ -30,6 +30,14 @@ interface driver_interface
public function is_legacy();
/**
+ * Check if password needs to be rehashed
+ *
+ * @param string $hash Hash to check for rehash
+ * @return bool True if password needs to be rehashed, false if not
+ */
+ public function needs_rehash($hash);
+
+ /**
* Returns the hash prefix
*
* @return string Hash prefix