diff options
Diffstat (limited to 'lib/private/Authentication/Events/AppPasswordCreatedEvent.php')
-rw-r--r-- | lib/private/Authentication/Events/AppPasswordCreatedEvent.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/private/Authentication/Events/AppPasswordCreatedEvent.php b/lib/private/Authentication/Events/AppPasswordCreatedEvent.php new file mode 100644 index 00000000000..bf502ade0cc --- /dev/null +++ b/lib/private/Authentication/Events/AppPasswordCreatedEvent.php @@ -0,0 +1,24 @@ +<?php + +declare(strict_types=1); + +/** + * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ +namespace OC\Authentication\Events; + +use OCP\Authentication\Token\IToken; +use OCP\EventDispatcher\Event; + +class AppPasswordCreatedEvent extends Event { + public function __construct( + private IToken $token, + ) { + parent::__construct(); + } + + public function getToken(): IToken { + return $this->token; + } +} |