ipalaus / laravel-spark-google2fa

Google Authenticator support for Laravel Spark

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google Authenticator support for Laravel Spark

This package replaces the default Two-Factor Authentication driver with Google Authenticator.

Demo

Installation

  • Run composer require eusebiu/laravel-spark-google2fa

  • Add Eusebiu\LaravelSparkGoogle2FA\Google2FAServiceProvider::class to your providers array in config/app.php

  • Run php artisan vendor:publish --provider="Eusebiu\LaravelSparkGoogle2FA\Google2FAServiceProvider"

  • Run php artisan migrate

  • Edit resources/views/vendor/spark/settings/security/enable-two-factor-auth.blade.php and replace everything with @include('google2fa::enable-two-factor-auth')

  • Edit resources/assets/js/spark-components/settings/security/enable-two-factor-auth.js and replace require('settings/security/enable-two-factor-auth') with require('./enable-two-factor-auth-google')

  • Run gulp

About

Google Authenticator support for Laravel Spark

License:MIT License


Languages

Language:PHP 88.2%Language:JavaScript 11.8%