mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-20 10:14:33 -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:
1 parent
1031c19779
commit
7a510af73a
4 files changed
+16
-9
No files matched your search
@@ -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