mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-04-04 14:43:32 -04:00
Fix calls to FreshRSS_Configuration
Replaced by a get_user_configuration() function in lib_rss. This function register a new configuration based on the given username and return the corresponding configuration. See https://github.com/FreshRSS/FreshRSS/issues/730
This commit is contained in:
@@ -29,7 +29,7 @@ class FreshRSS_javascript_Controller extends Minz_ActionController {
|
||||
if (ctype_alnum($user)) {
|
||||
try {
|
||||
$salt = FreshRSS_Context::$system_conf->salt;
|
||||
$conf = new FreshRSS_Configuration($user);
|
||||
$conf = get_user_configuration($user);
|
||||
$s = $conf->passwordHash;
|
||||
if (strlen($s) >= 60) {
|
||||
$this->view->salt1 = substr($s, 0, 29); //CRYPT_BLOWFISH Salt: "$2a$", a two digit cost parameter, "$", and 22 characters from the alphabet "./0-9A-Za-z".
|
||||
|
||||
Reference in New Issue
Block a user