diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-12-03 08:59:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-03 08:59:11 +0100 |
commit | 9fce87b2df43debdb2dc76c70b9af0d980535d3c (patch) | |
tree | fc80013d54e096a32a3ad93832caafcc0ed7ebb6 /lib/private/Authentication/Exceptions | |
parent | 1d707cc34950aaef847203dcde7147bea3ce4b96 (diff) | |
parent | b371e735cf457c9c36d88270713fb4dd605a24e9 (diff) | |
download | nextcloud-server-9fce87b2df43debdb2dc76c70b9af0d980535d3c.tar.gz nextcloud-server-9fce87b2df43debdb2dc76c70b9af0d980535d3c.zip |
Merge pull request #17443 from nextcloud/enh/expired_token_on_invalid_pass
Throw an invalid token exception is token is marked outdated
Diffstat (limited to 'lib/private/Authentication/Exceptions')
-rw-r--r-- | lib/private/Authentication/Exceptions/TokenPasswordExpiredException.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/private/Authentication/Exceptions/TokenPasswordExpiredException.php b/lib/private/Authentication/Exceptions/TokenPasswordExpiredException.php new file mode 100644 index 00000000000..6719037b4a0 --- /dev/null +++ b/lib/private/Authentication/Exceptions/TokenPasswordExpiredException.php @@ -0,0 +1,29 @@ +<?php +declare(strict_types=1); +/** + * @copyright Copyright (c) 2019, Roeland Jago Douma <roeland@famdouma.nl> + * + * @author Roeland Jago Douma <roeland@famdouma.nl> + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +namespace OC\Authentication\Exceptions; + +class TokenPasswordExpiredException extends ExpiredTokenException { + +} |