From 673b6e48b0af5f2f6f92c501f82fe10281dbf20f Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sat, 5 Aug 2017 18:27:47 +0200 Subject: Mutualise create-user and update-user --- cli/update-user.php | 42 ++++-------------------------------------- 1 file changed, 4 insertions(+), 38 deletions(-) (limited to 'cli/update-user.php') diff --git a/cli/update-user.php b/cli/update-user.php index f8ed26c8f..ac674484c 100755 --- a/cli/update-user.php +++ b/cli/update-user.php @@ -1,50 +1,16 @@ #!/usr/bin/php isset($options['language']) ? $options['language'] : null, - 'mail_login' => isset($options['email']) ? $options['email'] : null, - 'token' => isset($options['token']) ? $options['token'] : null, - 'old_entries' => intParam('purge_after_months'), - 'keep_history_default' => intParam('feed_min_articles_default'), - 'ttl_default' => intParam('feed_ttl_default'), - 'since_hours_posts_per_rss' => intParam('since_hours_posts_per_rss'), - 'min_posts_per_rss' => intParam('min_posts_per_rss'), - 'max_posts_per_rss' => intParam('max_posts_per_rss'), - )); + empty($options['api_password']) ? '' : $options['api_password'], + $values); if (!$ok) { fail('FreshRSS could not update user!'); -- cgit v1.2.3