2016-11-14 14:39:19 +00:00
|
|
|
<?php
|
2017-01-03 08:57:52 +00:00
|
|
|
|
2016-11-14 14:39:19 +00:00
|
|
|
/**
|
|
|
|
* @author Cornelius Kölbel <cornelius.koelbel@netknights.it>
|
2016-11-14 16:12:28 +00:00
|
|
|
* @copyright Copyright (c) 2016, ownCloud GmbH.
|
2017-01-03 08:57:52 +00:00
|
|
|
*
|
2016-11-14 14:39:19 +00: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,
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace OCP\Authentication\TwoFactorAuth;
|
|
|
|
|
2017-01-03 08:57:52 +00:00
|
|
|
use Exception;
|
|
|
|
|
2016-11-14 14:39:19 +00:00
|
|
|
/**
|
|
|
|
* Two Factor Authentication failed
|
2017-01-03 08:57:52 +00: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 14:39:19 +00:00
|
|
|
*/
|
2017-01-03 08:57:52 +00:00
|
|
|
class TwoFactorException extends Exception {
|
|
|
|
|
|
|
|
}
|