mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 18:50:47 -04:00
Also remove token when we successfully validated
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
1d02efdd8b
commit
1db6d96e94
1 changed files with 2 additions and 1 deletions
|
|
@ -119,8 +119,9 @@ class OpenLocalEditorController extends OCSController {
|
|||
return $response;
|
||||
}
|
||||
|
||||
$this->mapper->delete($entity);
|
||||
|
||||
if ($entity->getExpirationTime() <= $this->timeFactory->getTime()) {
|
||||
$this->mapper->delete($entity);
|
||||
return new DataResponse([], Http::STATUS_NOT_FOUND);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue