2016-11-14 17:39:19 +03:00
|
|
|
<?php
|
2019-12-03 21:57:53 +03:00
|
|
|
|
2018-03-26 12:18:21 +03:00
|
|
|
declare(strict_types=1);
|
2019-12-03 21:57:53 +03:00
|
|
|
|
2016-11-14 17:39:19 +03:00
|
|
|
/**
|
2016-11-14 19:12:28 +03:00
|
|
|
* @copyright Copyright (c) 2016, ownCloud GmbH.
|
2017-01-03 11:57:52 +03:00
|
|
|
*
|
2019-12-03 21:57:53 +03:00
|
|
|
* @author Christoph Wurst <christoph@winzerhof-wurst.at>
|
2017-11-06 17:56:42 +03:00
|
|
|
* @author Cornelius Kölbel <cornelius.koelbel@netknights.it>
|
|
|
|
*
|
2016-11-14 17:39:19 +03:00
|
|
|
* @license AGPL-3.0
|
|
|
|
*
|
|
|
|
* This code is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
|
|
* as published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* 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, version 3,
|
2019-12-03 21:57:53 +03:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
2016-11-14 17:39:19 +03:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace OCP\Authentication\TwoFactorAuth;
|
|
|
|
|
2017-01-03 11:57:52 +03:00
|
|
|
use Exception;
|
|
|
|
|
2016-11-14 17:39:19 +03:00
|
|
|
/**
|
|
|
|
* Two Factor Authentication failed
|
2017-01-03 11:57:52 +03:00
|
|
|
*
|
|
|
|
* It defines an Exception a 2FA app can
|
|
|
|
* throw in case of an error. The 2FA Controller will catch this exception and
|
|
|
|
* display this error.
|
|
|
|
*
|
|
|
|
* @since 12
|
2016-11-14 17:39:19 +03:00
|
|
|
*/
|
2017-01-03 11:57:52 +03:00
|
|
|
class TwoFactorException extends Exception {
|
|
|
|
}
|