diff options
author | Joas Schilling <coding@schilljs.com> | 2020-03-16 10:52:46 +0300 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2020-03-25 18:50:27 +0300 |
commit | 6bcd0975d0ccd30f882cd72ac93f3482d1aef732 (patch) | |
tree | 4754df4052094d06a4cffa96712c78fc5d315d5e /lib | |
parent | dcf186d9ef7a65865d19865a10169ff98fc3db73 (diff) |
Check the user on remote wipe
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Authentication/Token/RemoteWipe.php | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/private/Authentication/Token/RemoteWipe.php b/lib/private/Authentication/Token/RemoteWipe.php index 8e66abef7b2..6f0154287d2 100644 --- a/lib/private/Authentication/Token/RemoteWipe.php +++ b/lib/private/Authentication/Token/RemoteWipe.php @@ -55,18 +55,14 @@ class RemoteWipe { } /** - * @param int $id - * + * @param IToken $token * @return bool * * @throws InvalidTokenException * @throws WipeTokenException - * @throws ExpiredTokenException */ - public function markTokenForWipe(int $id): bool { - $token = $this->tokenProvider->getTokenById($id); - - if (!($token instanceof IWipeableToken)) { + public function markTokenForWipe(IToken $token): bool { + if (!$token instanceof IWipeableToken) { return false; } |