mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-16 03:03:42 -04:00
Compatibilité bcrypt.js oubliée
Corrige https://github.com/marienfressinaud/FreshRSS/issues/396 + Ajoute de meilleurs messages d'erreur
This commit is contained in:
@@ -106,6 +106,7 @@ class FreshRSS_users_Controller extends Minz_ActionController {
|
||||
}
|
||||
$passwordHash = password_hash($passwordPlain, PASSWORD_BCRYPT, array('cost' => self::BCRYPT_COST));
|
||||
$passwordPlain = '';
|
||||
$passwordHash = preg_replace('/^\$2[xy]\$/', '\$2a\$', $passwordHash); //Compatibility with bcrypt.js
|
||||
$ok &= ($passwordHash != '');
|
||||
}
|
||||
if (empty($passwordHash)) {
|
||||
|
||||
Reference in New Issue
Block a user