1.首先使用composer安装:
composer require "phpgangsta/googleauthenticator:dev-master"
2.安装好后,在代码里生成密钥
$g = new \PHPGangsta_GoogleAuthenticator();
$secret = $g->createSecret()
1.首先使用composer安装:
composer require "phpgangsta/googleauthenticator:dev-master"
2.安装好后,在代码里生成密钥
$g = new \PHPGangsta_GoogleAuthenticator();
$secret = $g->createSecret()