Skip to content

silverorange/admin

Folders and files

NameName
Last commit message
Last commit date
Nov 13, 2024
Feb 24, 2010
Feb 8, 2007
Jan 25, 2016
Jun 12, 2012
Oct 14, 2022
Oct 20, 2022
Jul 14, 2017
Oct 30, 2024
Jul 31, 2017
May 16, 2017
Oct 21, 2022
Nov 5, 2024
Jul 27, 2017
Oct 30, 2024

Repository files navigation

Admin

Admin is a framework for back-end administration systems. Admin is built using Swat and Site.

Installation

Make sure the silverorange composer repository is added to the composer.json for the project and then run:

composer require silverorange/admin

Enabling 2FA (Two Factor Authentication)

  1. Install the Admin package ≥ 6.1.0
  2. Add two composer packages:
composer require robthree/twofactorauth
composer require bacon/bacon-qr-code
  1. Run composer install

  2. Add the new database fields:

alter table adminuser add two_fa_secret varchar(255);
alter table adminuser add two_fa_enabled boolean not null default false;
alter table adminuser add two_fa_timeslice integer not null default 0;
  1. Edit your .ini files (both stage and production) and add:
[admin]
two_fa_enabled = On
  1. Let your users know! They will now see 2FA setup in the “Login Settings” in the top-right corner.