Browse Source
fix: invitation emails for talk
fix: invitation emails for talk
Signed-off-by: Anna Larch <anna@nextcloud.com>pull/15634/head
4 changed files with 88 additions and 13 deletions
-
57lib/Controller/RoomController.php
-
1psalm.xml
-
8tests/psalm-baseline.xml
-
35tests/stubs/oc_authentication_token_provider.php
@ -0,0 +1,35 @@ |
|||
<?php |
|||
|
|||
/** |
|||
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors |
|||
* SPDX-License-Identifier: AGPL-3.0-or-later |
|||
*/ |
|||
|
|||
namespace OC\Authentication\Token { |
|||
|
|||
use OCP\Authentication\Token\IToken as OCPIToken; |
|||
|
|||
interface IToken extends \JsonSerializable { |
|||
public const TEMPORARY_TOKEN = 0; |
|||
public const DO_NOT_REMEMBER = 0; |
|||
|
|||
} |
|||
|
|||
interface IProvider { |
|||
public function generateToken(string $token, |
|||
string $uid, |
|||
string $loginName, |
|||
?string $password, |
|||
string $name, |
|||
int $type = OCPIToken::TEMPORARY_TOKEN, |
|||
int $remember = OCPIToken::DO_NOT_REMEMBER, |
|||
?array $scope = null, |
|||
): IToken; |
|||
|
|||
public function invalidateToken(string $token); |
|||
|
|||
public function invalidateTokenById(string $uid, int $id); |
|||
|
|||
public function getTokenByUser(string $uid): array; |
|||
} |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue