2017 © Pedro Peláez
 

silverstripe-module more-admins

A small SilverStripe module for adding multiple default admins through environment config. Comes handy for dev teams!

image

level51/more-admins

A small SilverStripe module for adding multiple default admins through environment config. Comes handy for dev teams!

  • Thursday, October 22, 2015
  • by JZubero
  • Repository
  • 2 Watchers
  • 0 Stars
  • 30 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 3 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Maintainer

Installation

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., (*1)

Setup

  1. Install the module properly
  2. Extend your _ss_environment.php file with multiple admin credentials, e.g.:
global $_DEFAULT_ADMINS;
$_DEFAULT_ADMINS['root@root.de'] = 'root';
$_DEFAULT_ADMINS['test@test.de'] = 'mypw1';

Do a dev/build?flush=all and you are done!, (*2)

Notes

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_USERNAME and SS_DEFAULT_ADMIN_PASSWORD since the module will use the first entry in the $_DEFAULT_ADMINS array if there is no default admin, yet., (*3)

If you want to use it with basic auth you can specify the realm message in the prompt via the config API:, (*4)

MoreAdminsBasicAuth:
  default_realm: 'This site is protected. You need to enter admin credentials.'

The Versions

22/10 2015

dev-master

9999999-dev

A small SilverStripe module for adding multiple default admins through environment config. Comes handy for dev teams!

  Sources   Download

The Requires

  • php >=5.3

 

by Julian Scheuchenzuber