mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-04-11 18:07:43 -04:00
Separate the update API password endpoint (#2675)
* Extract hashPassword method from userController * Extract and refactor fever key-related methods * Move update of API password to dedicated action * Simplify the controller by refactoring feverUtil * Add locales
This commit is contained in:
committed by
Alexandre Alapetite
parent
15b8ef8f40
commit
d0f1f9f141
@@ -47,7 +47,7 @@ class FreshRSS_javascript_Controller extends Minz_ActionController {
|
||||
Minz_Log::notice('Nonce failure due to invalid username!');
|
||||
}
|
||||
//Failure: Return random data.
|
||||
$this->view->salt1 = sprintf('$2a$%02d$', FreshRSS_user_Controller::BCRYPT_COST);
|
||||
$this->view->salt1 = sprintf('$2a$%02d$', FreshRSS_password_Util::BCRYPT_COST);
|
||||
$alphabet = './ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
|
||||
for ($i = 22; $i > 0; $i--) {
|
||||
$this->view->salt1 .= $alphabet[mt_rand(0, 63)];
|
||||
|
||||
Reference in New Issue
Block a user