mirror of
https://code.castopod.org/adaures/castopod
synced 2025-06-06 09:22:01 +00:00

- update CI process to include quality stage (tests + code review) - add captainhook to install git pre-commit & pre-push hooks - remove .devcontainer Dockerfile to use project's docker-compose services: all services can now be started automatically using vscode - update docs/setup-development.md
55 lines
1.8 KiB
PHP
55 lines
1.8 KiB
PHP
<?php
|
|
|
|
namespace Config;
|
|
|
|
class Auth extends \Myth\Auth\Config\Auth
|
|
{
|
|
/**
|
|
* --------------------------------------------------------------------------
|
|
* Views used by Auth Controllers
|
|
* --------------------------------------------------------------------------
|
|
*
|
|
* @var array<string, string>
|
|
*/
|
|
public $views = [
|
|
'login' => 'auth/login',
|
|
'register' => 'auth/register',
|
|
'forgot' => 'auth/forgot',
|
|
'reset' => 'auth/reset',
|
|
'emailForgot' => 'auth/emails/forgot',
|
|
'emailActivation' => 'auth/emails/activation',
|
|
];
|
|
|
|
/**
|
|
* --------------------------------------------------------------------------
|
|
* Layout for the views to extend
|
|
* --------------------------------------------------------------------------
|
|
*
|
|
* @var string
|
|
*/
|
|
public $viewLayout = 'auth/_layout';
|
|
|
|
/**
|
|
* --------------------------------------------------------------------------
|
|
* 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
|
|
*/
|
|
public $allowRegistration = false;
|
|
|
|
/**
|
|
* --------------------------------------------------------------------------
|
|
* 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
|
|
*/
|
|
public $requireActivation = false;
|
|
}
|