burnbright/silverstripe-auth-username

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Adds username authentication and username or email login to a silverstripe install

dev-master 2017-08-30 19:18 UTC

This package is auto-updated.

Last update: 2021-09-24 12:50:27 UTC


README

This module introduces username authentication to SilverStripe. It also provides additional functionality for retrieving usernames and password.

Set Up

Copy the module folder to your SilverStripe site's root directory.

The module's _config.php file automatically:

  • adds the UsernameAuthenticator to the set of registered authenticators
  • decorates Member with a 'Username' DB field, and functions for generating a username, and for generating a password

In your site _config.php optionally add either of the following:

Authenticator::set_default_authenticator("UsernameAuthenticator"); // makes username authentication default
Authenticator::unregister("MemberAuthenticator"); // removes default email + password authentication