2020-07-10 12:20:25 +00:00
|
|
|
<?php
|
|
|
|
|
2021-06-08 09:52:11 +00:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2021-08-23 11:05:16 +00:00
|
|
|
namespace Modules\Auth\Config;
|
2020-07-10 12:20:25 +00:00
|
|
|
|
2021-05-12 14:00:25 +00:00
|
|
|
use Myth\Auth\Config\Auth as MythAuthConfig;
|
|
|
|
|
|
|
|
class Auth extends MythAuthConfig
|
2020-07-10 12:20:25 +00:00
|
|
|
{
|
2021-05-06 14:00:48 +00:00
|
|
|
/**
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
* Views used by Auth Controllers
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* @var array<string, string>
|
|
|
|
*/
|
2020-07-10 12:20:25 +00:00
|
|
|
public $views = [
|
2021-09-02 16:34:25 +00:00
|
|
|
'login' => 'login',
|
|
|
|
'register' => 'register',
|
|
|
|
'forgot' => 'forgot',
|
|
|
|
'reset' => 'reset',
|
|
|
|
'emailForgot' => 'emails/forgot',
|
|
|
|
'emailActivation' => 'emails/activation',
|
2020-07-10 12:20:25 +00:00
|
|
|
];
|
|
|
|
|
2021-05-06 14:00:48 +00:00
|
|
|
/**
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
* Layout for the views to extend
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
2021-09-02 16:34:25 +00:00
|
|
|
public $viewLayout = '_layout';
|
2020-07-10 12:20:25 +00:00
|
|
|
|
2021-05-06 14:00:48 +00:00
|
|
|
/**
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
* Allow User Registration
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
* When enabled (default) any unregistered user may apply for a new
|
|
|
|
* account. If you disable registration you may need to ensure your
|
|
|
|
* controllers and views know not to offer registration.
|
|
|
|
*
|
|
|
|
* @var bool
|
|
|
|
*/
|
2020-07-10 12:20:25 +00:00
|
|
|
public $allowRegistration = false;
|
|
|
|
|
2021-05-06 14:00:48 +00:00
|
|
|
/**
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
* Require confirmation registration via email
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
* When enabled, every registered user will receive an email message
|
|
|
|
* with a special link he have to confirm to activate his account.
|
|
|
|
*
|
|
|
|
* @var bool
|
|
|
|
*/
|
2020-07-10 12:20:25 +00:00
|
|
|
public $requireActivation = false;
|
2021-08-23 11:05:16 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
* Auth gateway
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
* Defines a base route for all authentication related pages
|
|
|
|
*/
|
|
|
|
public string $gateway = 'cp-auth';
|
2020-07-10 12:20:25 +00:00
|
|
|
}
|