diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2017-07-28 14:43:35 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-08-01 10:07:51 +0200 |
commit | 51d85eb2f84675f292279fc4d5977c958620e802 (patch) | |
tree | d98d8c25e9d1d2756807b1e4a1a6b6a40fc93f62 /apps/federation/lib/Controller | |
parent | 2b895e0c60b6f283cb26b2ca0e18a05497103bc2 (diff) | |
download | nextcloud-server-51d85eb2f84675f292279fc4d5977c958620e802.tar.gz nextcloud-server-51d85eb2f84675f292279fc4d5977c958620e802.zip |
expire getShareadSecret job after 30 days
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'apps/federation/lib/Controller')
-rw-r--r-- | apps/federation/lib/Controller/OCSAuthAPIController.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/federation/lib/Controller/OCSAuthAPIController.php b/apps/federation/lib/Controller/OCSAuthAPIController.php index 594299a2d02..a2a608babac 100644 --- a/apps/federation/lib/Controller/OCSAuthAPIController.php +++ b/apps/federation/lib/Controller/OCSAuthAPIController.php @@ -163,6 +163,7 @@ class OCSAuthAPIController extends OCSController{ [ 'url' => $url, 'token' => $token, + 'created' => $this->getTimestamp() ] ); @@ -211,4 +212,8 @@ class OCSAuthAPIController extends OCSController{ return hash_equals($storedToken, $token); } + protected function getTimestamp() { + return time(); + } + } |