desrodman/yii2-google-authenticator

2 step verification of google authenticator for your yii2 application

Installs: 193

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 5

Type:yii2-extension

dev-master 2020-11-26 15:06 UTC

This package is auto-updated.

Last update: 2024-05-26 23:45:07 UTC


README

Add to composer.json

"desrodman/yii2-google-authenticator": "@dev"

or

composer require --prefer-dist "desrodman/yii2-google-authenticator @dev"

Once the extension is installed, simply modify your application configuration as follows:

'modules' => [

    ----------------

    'authenticator' => [
        'class' => 'desrodman\authenticator\Module',
        'twoStepVerification' => true,
    ],
],

--------------------

'bootstrap' => ['log', 'authenticator'],

Migrate Command:

yii migrate
php yii migrate --migrationPath=@desrodman/authenticator/migrations

You can then access Next Authenticator through the following URL:

http://localhost/path/to/index.php?r=authenticator/default/scan

or if you have enabled pretty URLs, you may use the following URL:

http://localhost/path/to/index.php/authenticator/default/scan