chencongbao/google-authenticator

Google 两步验证码

dev-master 2022-10-29 02:25 UTC

This package is not auto-updated.

Last update: 2024-11-09 23:23:24 UTC


README

  1. 相对于验证码,安全很多;几乎是不会存在破解的方法
  2. 验证码有时候无法识别,不方便操作
  3. 一机一码,不会存在账号盗用的问题
  4. 动态验证,每30秒生产一个验证码,安全更加保障

composer require ghost/google-authenticator

php artisan migrate

'google-authenticator'=> [
    'enable' => true,
    'authenticatorname' => '' //名称 
],
namespace App\Admin\Controllers;

use Ghost\GoogleAuthenticator\Http\Controllers\AuthController as BaseAuthController;