diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-03-24 20:26:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-24 20:26:52 +0100 |
commit | 3b26bfe879e7ebd3eeef1ef767cbacc8acd20293 (patch) | |
tree | 01711f01b31ea08d01372c4ef7dba97ef1623f60 /lib | |
parent | 3e338c907533dd77599b576ecfadd44b3d1a9855 (diff) | |
parent | 9935c71ec310b45a7cfcf0bad286eace4192ebb4 (diff) | |
download | nextcloud-server-3b26bfe879e7ebd3eeef1ef767cbacc8acd20293.tar.gz nextcloud-server-3b26bfe879e7ebd3eeef1ef767cbacc8acd20293.zip |
Merge pull request #20127 from nextcloud/bugfix/noid/check-user-on-remote-wipe
Check the user on remote wipe
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; } |