Skip to content

VimKanzoGH/laravel-spark-google2fa

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 50.0%
  • HTML 38.0%
  • JavaScript 12.0%