Skip to content
Snippets Groups Projects
Auth.php 2.1 KiB
Newer Older
  • Learn to ignore specific revisions
  • use Myth\Auth\Config\Auth as MythAuthConfig;
    
    class Auth extends MythAuthConfig
    
        /**
         * --------------------------------------------------------------------------
         * Views used by Auth Controllers
         * --------------------------------------------------------------------------
         *
         * @var array<string, string>
         */
    
            'login' => 'login',
            'register' => 'register',
            'forgot' => 'forgot',
            'reset' => 'reset',
            'emailForgot' => 'emails/forgot',
            'emailActivation' => 'emails/activation',
    
        /**
         * --------------------------------------------------------------------------
         * Layout for the views to extend
         * --------------------------------------------------------------------------
         *
         * @var string
         */
    
        /**
         * --------------------------------------------------------------------------
         * 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
         */
    
        /**
         * --------------------------------------------------------------------------
         * 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
         */
    
    
        /**
         * --------------------------------------------------------------------------
         * Auth gateway
         * --------------------------------------------------------------------------
         * Defines a base route for all authentication related pages
         */
        public string $gateway = 'cp-auth';