Newer
Older

Yassine Doghri
committed
<?php

Yassine Doghri
committed
declare(strict_types=1);

Yassine Doghri
committed
namespace Modules\Auth\Config;

Yassine Doghri
committed
use Myth\Auth\Config\Auth as MythAuthConfig;
class Auth extends MythAuthConfig

Yassine Doghri
committed
{

Yassine Doghri
committed
/**
* --------------------------------------------------------------------------
* Views used by Auth Controllers
* --------------------------------------------------------------------------
*
* @var array<string, string>
*/

Yassine Doghri
committed
public $views = [
'login' => 'login',
'register' => 'register',
'forgot' => 'forgot',
'reset' => 'reset',
'emailForgot' => 'emails/forgot',
'emailActivation' => 'emails/activation',

Yassine Doghri
committed
];

Yassine Doghri
committed
/**
* --------------------------------------------------------------------------
* Layout for the views to extend
* --------------------------------------------------------------------------
*
* @var string
*/
public $viewLayout = '_layout';

Yassine Doghri
committed

Yassine Doghri
committed
/**
* --------------------------------------------------------------------------
* 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
*/

Yassine Doghri
committed
public $allowRegistration = false;

Yassine Doghri
committed
/**
* --------------------------------------------------------------------------
* Auth gateway
* --------------------------------------------------------------------------
* Defines a base route for all authentication related pages
*/
public string $gateway = 'cp-auth';