Skip to content

Commit

Permalink
Capthca and web sockets upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
Dushan Cimbalevic authored and Dushan Cimbalevic committed Oct 10, 2024
1 parent aa671fa commit 508e0e8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Feel free to customize any of the files we install or change:
/Actions/Fortify/MagicLoginUpdateUserPassword.php
/Providers/FortifyServiceProvider.php
/routes/web.php
/public/magicmk_integration_ES6_min.js
/public/magicmk_integration_ES6.js
```

## Contributing
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion resources/views/auth/magic-auth.blade.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<form id="magic-form">
<input id="magic-input" required>
<button id="magic-submit"></button>
<div id="RecaptchaField"></div>
<p id="validation-message"></p>
</form>

<script src="{{ asset('magicmk_integration_ES6_min.js') }}"></script>
<script src="{{ asset('magicmk_integration_ES6.js') }}"></script>

<script>
document.addEventListener('DOMContentLoaded', function () {
Expand Down
6 changes: 3 additions & 3 deletions src/Console/MagicloginLivewireCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ protected function installVuePage(): void

protected function installIntegrationScript(): void
{
$sourcePath = __DIR__ . '/../../resources/js/magicmk_integration_ES6_min.js';
$sourcePath = __DIR__ . '/../../resources/js/magicmk_integration_ES6.js';

$destinationPath = public_path('magicmk_integration_ES6_min.js');
$destinationPath = public_path('magicmk_integration_ES6.js');

if (!File::exists($sourcePath)) {
$this->error("Integration script not found at $sourcePath");
Expand All @@ -172,7 +172,7 @@ protected function installIntegrationScript(): void
}

File::copy($sourcePath, $destinationPath);
$this->info('magicmk_integration_ES6_min.js script installed.');
$this->info('magicmk_integration_ES6.js script installed.');
}

protected function updateEnvFile(): void
Expand Down

0 comments on commit 508e0e8

Please sign in to comment.