aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/userController.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-04-09 00:25:04 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-04-09 00:25:04 +0200
commit0ce43be9de5bf676ceffa2e419941863f98fa970 (patch)
tree5ba88fe364fda8fe852ad671aba14edc45cfcc04 /app/Controllers/userController.php
parent8af3c9841e7040b91282f24cdccc0e215c52ceef (diff)
Multi-user token
https://github.com/FreshRSS/FreshRSS/issues/1390 https://github.com/FreshRSS/FreshRSS/issues/366
Diffstat (limited to 'app/Controllers/userController.php')
-rw-r--r--app/Controllers/userController.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/Controllers/userController.php b/app/Controllers/userController.php
index f910cecd9..ee575fa09 100644
--- a/app/Controllers/userController.php
+++ b/app/Controllers/userController.php
@@ -74,6 +74,10 @@ class FreshRSS_user_Controller extends Minz_ActionController {
FreshRSS_Context::$user_conf->apiPasswordHash = $passwordHash;
}
+ $current_token = FreshRSS_Context::$user_conf->token;
+ $token = Minz_Request::param('token', $current_token);
+ FreshRSS_Context::$user_conf->token = $token;
+
$ok &= FreshRSS_Context::$user_conf->save();
if ($ok) {