mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-20 15:47:38 +01:00
21 lines
700 B
PHP
21 lines
700 B
PHP
|
<?php
|
||
|
|
||
|
/***********************************************************
|
||
|
* AuthMe website integration logic for BCrypt *
|
||
|
* ------------------------------------------------------- *
|
||
|
* See AuthMeController for details. *
|
||
|
* *
|
||
|
* Source: https://github.com/AuthMe-Team/AuthMeReloaded/ *
|
||
|
***********************************************************/
|
||
|
class Bcrypt extends AuthMeController {
|
||
|
|
||
|
protected function hash($password) {
|
||
|
return password_hash($password, PASSWORD_BCRYPT);
|
||
|
}
|
||
|
|
||
|
protected function isValidPassword($password, $hash) {
|
||
|
return password_verify($password, $hash);
|
||
|
}
|
||
|
|
||
|
}
|