diff options
author | Joas Schilling <coding@schilljs.com> | 2020-03-16 08:52:46 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-03-16 09:29:28 +0100 |
commit | 9935c71ec310b45a7cfcf0bad286eace4192ebb4 (patch) | |
tree | b40257e93a8d559053c096378515c1594ffe5632 /lib | |
parent | f85747f74c54c0bc973e0cd6338239dccf32a3f5 (diff) | |
download | nextcloud-server-9935c71ec310b45a7cfcf0bad286eace4192ebb4.tar.gz nextcloud-server-9935c71ec310b45a7cfcf0bad286eace4192ebb4.zip |
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 2285ccd2cd8..e0fbf0734f5 100644 --- a/lib/private/Authentication/Token/RemoteWipe.php +++ b/lib/private/Authentication/Token/RemoteWipe.php @@ -57,18 +57,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; } |