Initial commit
This commit is contained in:
commit
08a8a71c55
631 changed files with 139902 additions and 0 deletions
21
public/kirby/src/Exception/AuthException.php
Normal file
21
public/kirby/src/Exception/AuthException.php
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<?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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue