Download the PHP package renzhifan/laravel-google-authenticator without Composer
On this page you can find all versions of the php package renzhifan/laravel-google-authenticator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download renzhifan/laravel-google-authenticator
More information about renzhifan/laravel-google-authenticator
Files in renzhifan/laravel-google-authenticator
Download renzhifan/laravel-google-authenticator
More information about renzhifan/laravel-google-authenticator
Files in renzhifan/laravel-google-authenticator
Vendor renzhifan
Package laravel-google-authenticator
Short Description Laravel 5 GoogleAuthenticator Package
License MIT
Package laravel-google-authenticator
Short Description Laravel 5 GoogleAuthenticator Package
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-google-authenticator
Google 身份验证器与两步验证功能配合,可在您登录 Google 帐户时为您平添一重安全保障。启用两步验证之后,当您登录帐户时,需要提供密码和此应用生成的验证码。配置完成后,无需网络连接或蜂窝连接即可获得验证码。APP中使用如下:
为什么使用两步认证
- 相对于验证码,安全很多;几乎是不会存在破解的方法
- 验证码有时候无法识别,不方便操作
- 一机一码,不会存在账号盗用的问题
- 动态验证,每30秒生产一个验证码,安全更加保障
开发前的准备
- 安装Laravel
- 安装二维码生成器
QrCode
,没有安装也可以,接下来会安装
安装拓展
1、运行如下代码安装拓展包:
3.等待下载安装完成,需要在config/app.php
中注册服务提供者同时注册下相应门面:
服务注入以后,如果要使用自定义的配置,还可以发布配置文件到config/views目录:
使用
使用方法非常简单,主要为生成验证码和教研验证码
1、生产验证码
生产验证码使用CreateSecret
即可,你需要将其内容生成二维码供手机APP扫描,具体内容在google.blade.php
中已经配置成功
2、校验验证码
校验验证码一般用于绑定,登录认证中,使用CheckCode
方法即可,需要传入secrect
和onecode
即验证码即可进行校验,第一个为secrect
;返回true
或false
这里有一个具体的实际事例:
All versions of laravel-google-authenticator with dependencies
PHP Build Version
Package Version
No informations.
The package renzhifan/laravel-google-authenticator contains the following files
Loading the files please wait ....