Skip to content

Latest commit

 

History

History
251 lines (200 loc) · 9.19 KB

Home.md

File metadata and controls

251 lines (200 loc) · 9.19 KB

Home

The Users Plugin allow users to register and login, manage their profile, etc. It also allows admins to manage the users.

The plugin is thought as a base to extend your app specific users controller and model from.

That it works out of the box doesn't mean it is thought to be used exactly like it is but to provide you a kick start.

Documentation

I want to

  • extend the

  • enable or disable

    • email validation

      Add this to your config/users.php file to disable email validation

        'Users.Email.validate' => false,

      or this to enable (default)

        'Users.Email.validate' => true,
    • registration

      Add this to your config/users.php file to disable registration

      'Users.Registration.active' => false,

      or this to enable (default)

      'Users.Registration.active' => true,
    • reCaptcha on registration

      To enable reCaptcha you need to register your site at google reCaptcha console and add this to your config/users.php file to enable on registration:

      'Users.reCaptcha.key' => 'YOUR RECAPTCHA KEY',
      'Users.reCaptcha.secret' => 'YOUR RECAPTCHA SECRET',
      'Users.reCaptcha.registration' => true,

      To disable (default) add this to your config/users.php

      'Users.reCaptcha.registration' => false,
    • reCaptcha on login

      To enable reCaptcha you need to register your site at google reCaptcha console and add this to your config/users.php file to enable on login:

      'Users.reCaptcha.key' => 'YOUR RECAPTCHA KEY',
      'Users.reCaptcha.secret' => 'YOUR RECAPTCHA SECRET',
      'Users.reCaptcha.login' => true,

      To disable (default) add this to your config/users.php

      'Users.reCaptcha.login' => false,
    • social login

    • OTP Two-factor authenticator

    • Webauthn Two-Factor Authentication

    • Authentication component

      Add this to your config/users.php file to autoload the component (default):

      'Auth.AuthenticationComponent.load' => true,

      To not autoload add this to your config/users.php

      'Auth.AuthenticationComponent.load' => false,
    • Authorization component

      Add this to your config/users.php file to autoload the component (default):

        'Auth.AuthorizationComponent.enabled' => true,

      To not autoload add this to your config/users.php

        'Auth.AuthorizationComponent.enabled' => false,
    • TOS validation

      Add this to your config/users.php file to enable (default):

        'Users.Tos.required' => true,

      To disable add this to your config/users.php

        'Users.Tos.required' => false,
    • remember me

      Add this to your config/users.php file to enable (default):

        'Users.RememberMe.active' => true,

      To disable add this to your config/users.php

        'Users.RememberMe.active' => false,

Migration guides