fish210717 / login_mfa
the google twofactorauth
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
Type:project
Requires
- php: >=7.0.0
- ext-json: *
- chillerlan/php-qrcode: 2.0.8
- robthree/twofactorauth: ^1.8.2
This package is auto-updated.
Last update: 2024-04-21 09:06:45 UTC
README
google 双重认证
示例: $mfa = new LoginMfa(); $data = json_decode(($mfa->create($domain . '-' . $userName)), true);
$result = $mfa->verify($data['secret'], $data['code']);