made simple/twofactor

双因素认证库

v1.2.0 2022-02-25 15:02 UTC

This package is auto-updated.

Last update: 2024-09-25 21:17:18 UTC


README

PHPUnit

双因素认证库。

谷歌身份验证器

如何使用

use MadeSimple\TwoFactor\GoogleAuthenticator\GoogleAuthenticator;

$auth = new GoogleAuthenticator($secret);
if (!$auth->$verfiy($code)) {
    // Block access
}

// Sign them in