diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-01-04 12:20:14 +0100 |
---|---|---|
committer | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2024-01-11 14:02:15 +0100 |
commit | eee9f1eec417c9bb976046e4114d3df943da62e1 (patch) | |
tree | 020456c3a10d45283f02bf32531eab8de330c715 /lib/private/User/Session.php | |
parent | 67fba0a574a3740976c84bb6498011e8d2cef0f1 (diff) | |
download | nextcloud-server-eee9f1eec417c9bb976046e4114d3df943da62e1.tar.gz nextcloud-server-eee9f1eec417c9bb976046e4114d3df943da62e1.zip |
Always catch OCP versions of authentication exceptions
And always throw OC versions for BC
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/User/Session.php')
-rw-r--r-- | lib/private/User/Session.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/User/Session.php b/lib/private/User/Session.php index 5689de3995f..02a7a7e9e16 100644 --- a/lib/private/User/Session.php +++ b/lib/private/User/Session.php @@ -39,8 +39,6 @@ namespace OC\User; use OC; -use OC\Authentication\Exceptions\ExpiredTokenException; -use OC\Authentication\Exceptions\InvalidTokenException; use OC\Authentication\Exceptions\PasswordlessTokenException; use OC\Authentication\Exceptions\PasswordLoginForbiddenException; use OC\Authentication\Token\IProvider; @@ -51,6 +49,8 @@ use OC_User; use OC_Util; use OCA\DAV\Connector\Sabre\Auth; use OCP\AppFramework\Utility\ITimeFactory; +use OCP\Authentication\Exceptions\ExpiredTokenException; +use OCP\Authentication\Exceptions\InvalidTokenException; use OCP\EventDispatcher\GenericEvent; use OCP\EventDispatcher\IEventDispatcher; use OCP\Files\NotPermittedException; |