You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
503 B
24 lines
503 B
#!/usr/bin/php |
|
<?php |
|
$isUpdate = true; |
|
require(__DIR__ . '/_update-or-create-user.php'); |
|
|
|
$username = cliInitUser($options['user']); |
|
|
|
echo 'FreshRSS updating user “', $username, "”…\n"; |
|
|
|
$ok = FreshRSS_user_Controller::updateUser( |
|
$username, |
|
empty($options['password']) ? '' : $options['password'], |
|
empty($options['api_password']) ? '' : $options['api_password'], |
|
$values); |
|
|
|
if (!$ok) { |
|
fail('FreshRSS could not update user!'); |
|
} |
|
|
|
invalidateHttpCache($username); |
|
|
|
accessRights(); |
|
|
|
done($ok);
|
|
|