Skip to content

ghost-die/google-authenticator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google 两步登陆验证

laravel-admin 后台验证插件

  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;