Hash configuration

This commit is contained in:
Marcin Łojewski
2018-07-10 22:19:50 +02:00
parent 50da49c820
commit 924886dd9a
9 changed files with 105 additions and 2 deletions

View File

@@ -56,4 +56,13 @@ interface IPasswordAlgorithm
* @return boolean True if the password is correct, false otherwise.
*/
public function checkPassword($password, $dbHash);
/**
* Configuration for the algorithm.
* The return array should contain entries which define keys:
* name, visible_name, default, min, max.
*
* @return array The configuration array.
*/
public function configuration();
}