21 lines
532 B
PHP
21 lines
532 B
PHP
<?php
|
|
|
|
namespace Kirby\Exception;
|
|
|
|
/**
|
|
* AuthException
|
|
* Thrown when authentication is required
|
|
* but no user is logged in.
|
|
*
|
|
* @package Kirby Exception
|
|
* @author Bastian Allgeier <bastian@getkirby.com>
|
|
* @link https://getkirby.com
|
|
* @copyright Bastian Allgeier
|
|
* @license https://opensource.org/licenses/MIT
|
|
*/
|
|
class AuthException extends Exception
|
|
{
|
|
protected static string $defaultKey = 'auth';
|
|
protected static string $defaultFallback = 'Unauthenticated';
|
|
protected static int $defaultHttpCode = 401;
|
|
}
|