定制 kuliks08/voyager-2fa 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kuliks08/voyager-2fa

最新稳定版本:1.0.5

Composer 安装命令:

composer require kuliks08/voyager-2fa

包简介

Two-factor authentication for Voyager II

README 文档

README

This plugin for Voyager II uses pragmarx/google2fa-laravel for two-factor-authentication.

Installation

First, run composer require kuliks08/voyager-2fa.
After that run php artisan 2fa:install.

This will:

  1. Publish pragmarx/google2fa-laravel config file
  2. Publish a migration to add a field named google2fa_secret to your users table
  3. Migrate

You can skip publishing the config file and migrating.
This is helpful when you want to modify the migration file.

Usage

By default, this plugin does not force you to use 2FA.
Whenever a 2FA code is assigned to a user, it will ask for it when logging-in.

Activating 2FA for your account

Open the top-right user dropdown and click Manage 2FA.
There you will see a QR code and an input box.
Scan the QR code with your phone or enter the code manually and enter the generated OTP into the input.
Click Enable and the code will be stored.
Now, whenever you log-in, you'll be asked for a one-time-password.

Warning

Disable 2FA

Clicking the Disable button will remove the OTP code from the database.
You are not required to enter an OTP when logging-in.
This requires the setting 2FA.allow_disabling to be on!

Renew 2FA code

When 2FA is active, you can simply renew the code. Proceed like described in Activating 2FA for your account and click on Renew instead of Enable!

Settings

This plugin publishes some settings.

2FA.force_2fa

When active, this setting will prevent the user to open any page before setting-up 2FA. Defaults to false.

2FA.show_warning

Shows a warning whenever a page is opened and 2FA is not activated for the current user. Defaults to true.

Warning

2FA.allow_disabling

Allow users to disable two-factor-auth. Defaults to true.

统计信息

  • 总下载量: 40
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-02-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固