This bundle provides a two-factor authentication system for Roadiz CMS. Based on scheb/two-factor-bundle bundle.
- OTP (One Time Password) authentication with Google Authenticator
- Backup codes (hashed and stored in database)
- Trusted devices (remembered for a configurable amount of time)
- Use
APP_NAMESPACE
,APP_TITLE
andAPP_SECRET
environment variables
Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.
Open a command console, enter your project directory and execute:
$ composer require roadiz/two-factor-bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
$ composer require roadiz/two-factor-bundle
Then, enable the bundle by adding it to the list of registered bundles
in the config/bundles.php
file of your project:
// config/bundles.php
return [
// ...
\RZ\Roadiz\TwoFactorBundle\RoadizTwoFactorBundle::class => ['all' => true],
];
- Copy and merge
@RoadizTwoFactor/config/packages/scheb_2fa.yaml
files into your projectconfig/packages
folder - Add this bundle routes to your project
config/routes.yaml
file:
# config/routes.yaml
roadiz_two_factor:
resource: "@RoadizTwoFactorBundle/config/routing.yaml"
Report issues and send Pull Requests in the main Roadiz repository