mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-05 13:44:43 -04:00
Fix CLI api_password (#3179)
* Fix CLI api_password #fix https://github.com/FreshRSS/FreshRSS/issues/3177 Fix regression from https://github.com/FreshRSS/FreshRSS/pull/2675 * Update cli/_update-or-create-user.php Co-authored-by: oupala <oupala@users.noreply.github.com> Co-authored-by: oupala <oupala@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
f1fe2147a1
commit
bb9b166eb1
@@ -28,6 +28,14 @@ if (!$ok) {
|
||||
fail('FreshRSS could not create user!');
|
||||
}
|
||||
|
||||
if (!empty($options['api_password'])) {
|
||||
$username = cliInitUser($username);
|
||||
$error = FreshRSS_api_Controller::updatePassword($options['api_password']);
|
||||
if ($error) {
|
||||
fail($error);
|
||||
}
|
||||
}
|
||||
|
||||
invalidateHttpCache(FreshRSS_Context::$system_conf->default_user);
|
||||
|
||||
echo '• Remember to refresh the feeds of the user: ', $username , "\n",
|
||||
|
||||
Reference in New Issue
Block a user