|
- <?php
-
- namespace Config;
-
-
- class Auth extends \Myth\Auth\Config\Auth
- {
-
-
- public $defaultUserGroup;
-
-
-
- public $landingRoute = '/';
-
-
-
- public $reservedRoutes = [
- 'login' => 'login',
- 'logout' => 'logout',
- 'register' => 'register',
- 'activate-account' => 'activate-account',
- 'resend-activate-account' => 'resend-activate-account',
- 'forgot' => 'forgot',
- 'reset-password' => 'reset-password',
- ];
-
-
-
- public $authenticationLibs = [
- 'local' => 'Myth\Auth\Authentication\LocalAuthenticator',
- ];
-
-
-
- public $views = [
- 'login' => 'App\Views\Auth\login',
- 'register' => 'App\Views\Auth\register',
- 'forgot' => 'App\Views\Auth\forgot',
- 'reset' => 'App\Views\Auth\reset',
- 'emailForgot' => 'App\Views\Auth\emails\forgot',
- 'emailActivation' => 'App\Views\Auth\emails\activation',
- ];
-
-
-
- public $viewLayout = 'App\Views\Auth\layout';
-
-
-
- public $validFields = [
- 'email',
- ];
-
-
-
- public $personalFields = [];
-
-
-
- public $maxSimilarity = 50;
-
-
-
- public $allowRegistration = true;
-
-
-
- public $requireActivation = 'Myth\Auth\Authentication\Activators\EmailActivator';
-
-
-
- public $activeResetter = 'Myth\Auth\Authentication\Resetters\EmailResetter';
-
-
-
- public $allowRemembering = false;
-
-
-
- public $rememberLength = 30 * DAY;
-
-
-
- public $silent = false;
-
-
-
- public $hashAlgorithm = PASSWORD_DEFAULT;
-
-
-
-
-
-
- public $hashMemoryCost = 2048;
-
-
-
- public $hashTimeCost = 4;
-
-
-
- public $hashThreads = 4;
-
-
-
- public $hashCost = 10;
-
-
-
- public $minimumPasswordLength = 8;
-
-
-
- public $passwordValidators = [
- 'Myth\Auth\Authentication\Passwords\CompositionValidator',
- 'Myth\Auth\Authentication\Passwords\NothingPersonalValidator',
- 'Myth\Auth\Authentication\Passwords\DictionaryValidator',
-
- ];
-
-
-
- public $userActivators = [
- 'Myth\Auth\Authentication\Activators\EmailActivator' => [
- 'fromEmail' => null,
- 'fromName' => null,
- ],
- ];
-
-
-
- public $userResetters = [
- 'Myth\Auth\Authentication\Resetters\EmailResetter' => [
- 'fromEmail' => null,
- 'fromName' => null,
- ],
- ];
-
-
-
- public $resetTime = 3600;
- }
|