Skip to content

Commit

Permalink
Update TwoFAServiceProvider.php
Browse files Browse the repository at this point in the history
  • Loading branch information
cbl authored Mar 22, 2021
1 parent d1de891 commit 980166b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/TwoFAServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

use Ignite\Crud\CrudShow;
use Ignite\Crud\Form;
use Ignite\Foundation\Litstack;
use Ignite\Routing\Router;
use Ignite\Support\Facades\Lit;
use Ignite\Translation\Translator;
use Illuminate\Support\ServiceProvider;

Expand Down Expand Up @@ -43,8 +43,10 @@ public function boot()
{
$this->loadViewsFrom(__DIR__.'/../views', 'litstack-2fa');

Lit::script(__DIR__.'/../dist/2fa.js');
Lit::loginScript(__DIR__.'/../dist/2fa-login.js');
$this->callAfterResolving('lit', function (Litstack $litstack) {
$litstack->script(__DIR__.'/../dist/2fa.js');
$litstack->loginScript(__DIR__.'/../dist/2fa-login.js');
});

$this->callAfterResolving('lit.form', function (Form $form) {
$form->field('verify', VerifyField::class);
Expand Down

0 comments on commit 980166b

Please sign in to comment.