summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-03-24 20:26:52 +0100
committerGitHub <noreply@github.com>2020-03-24 20:26:52 +0100
commit3b26bfe879e7ebd3eeef1ef767cbacc8acd20293 (patch)
tree01711f01b31ea08d01372c4ef7dba97ef1623f60 /lib
parent3e338c907533dd77599b576ecfadd44b3d1a9855 (diff)
parent9935c71ec310b45a7cfcf0bad286eace4192ebb4 (diff)
downloadnextcloud-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.php10
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;
}