A small SilverStripe module for adding multiple default admins through environment config. Comes handy for dev teams!
composer require level51/more-admins
If you don't like composer you can just download and unpack it to more-admins/ under the root of your SilverStripe project.
global $_DEFAULT_ADMINS; $_DEFAULT_ADMINS['[email protected]'] = 'root'; $_DEFAULT_ADMINS['[email protected]'] = 'mypw1';
Do a dev/build?flush=all and you are done!
If your are using this module you do not need to specify a default admin the default way via
Security::setDefaultAdmin() or the constants
SS_DEFAULT_ADMIN_PASSWORD since the module will use the first entry in the
$_DEFAULT_ADMINS array if there is no default admin, yet.
If you want to use it with basic auth you can specify the realm message in the prompt via the config API:
MoreAdminsBasicAuth: default_realm: 'This site is protected. You need to enter admin credentials.'
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem