mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-18 13:24:37 -04:00
Fix setters on $user_conf
Old setters does not exist anymore, remove them. See https://github.com/FreshRSS/FreshRSS/issues/730
This commit is contained in:
@@ -39,7 +39,7 @@ class FreshRSS_user_Controller extends Minz_ActionController {
|
||||
$passwordPlain = '';
|
||||
$passwordHash = preg_replace('/^\$2[xy]\$/', '\$2a\$', $passwordHash); //Compatibility with bcrypt.js
|
||||
$ok &= ($passwordHash != '');
|
||||
FreshRSS_Context::$user_conf->_passwordHash($passwordHash);
|
||||
FreshRSS_Context::$user_conf->passwordHash = $passwordHash;
|
||||
}
|
||||
Minz_Session::_param('passwordHash', FreshRSS_Context::$user_conf->passwordHash);
|
||||
|
||||
@@ -52,12 +52,12 @@ class FreshRSS_user_Controller extends Minz_ActionController {
|
||||
$passwordPlain = '';
|
||||
$passwordHash = preg_replace('/^\$2[xy]\$/', '\$2a\$', $passwordHash); //Compatibility with bcrypt.js
|
||||
$ok &= ($passwordHash != '');
|
||||
FreshRSS_Context::$user_conf->_apiPasswordHash($passwordHash);
|
||||
FreshRSS_Context::$user_conf->apiPasswordHash = $passwordHash;
|
||||
}
|
||||
|
||||
// TODO: why do we need of hasAccess here?
|
||||
if (FreshRSS_Auth::hasAccess('admin')) {
|
||||
FreshRSS_Context::$user_conf->_mail_login(Minz_Request::param('mail_login', '', true));
|
||||
FreshRSS_Context::$user_conf->mail_login = Minz_Request::param('mail_login', '', true);
|
||||
}
|
||||
$email = FreshRSS_Context::$user_conf->mail_login;
|
||||
Minz_Session::_param('mail', $email);
|
||||
|
||||
Reference in New Issue
Block a user