feat: Add Passkey support
- Added a button for logging in with Passkeys in `login.blade.php` - Refactored the `register` method and added the `login` method in `auth.js` - Made various modifications and additions to the passkey functionality in `PasskeysController.php` - Added event listener for login-passkey element in `app.js` - Modified the passkeys table schema and made modifications to `Passkey.php` - Changed the redirect route in the `login` method of `AuthController.php` - Made modifications and additions to the routes in `web.php` - Added `"web-auth/webauthn-lib": "^4.7"` to the list of required packages in `composer.json` - Changed the redirect URL in `AdminTest.php`
This commit is contained in:
parent
2fb8339d91
commit
03c8f20a8c
18 changed files with 982 additions and 363 deletions
|
@ -9,4 +9,5 @@
|
|||
<input type="password" name="password" placeholder="password">
|
||||
<input type="submit" name="submit" value="Login">
|
||||
</form>
|
||||
<p><button type="button" class="login-passkey">Login with Passkeys</button></p>
|
||||
@stop
|
||||
|
|
|
@ -54,9 +54,16 @@
|
|||
</main>
|
||||
|
||||
<footer>
|
||||
<form action="/search" method="get">
|
||||
<input type="text" name="q" title="Search"><button type="submit">Search</button>
|
||||
</form>
|
||||
<div class="footer-actions">
|
||||
<form action="/search" method="get">
|
||||
<input type="text" name="q" title="Search"><button type="submit">Search</button>
|
||||
</form>
|
||||
@auth()
|
||||
<a href="/logout" class="auth">Logout</a>
|
||||
@else
|
||||
<a href="/login" class="auth">Login</a>
|
||||
@endauth
|
||||
</div>
|
||||
<p>Built with love: <a href="/colophon">Colophon</a></p>
|
||||
<a href="https://indieweb.org"><img src="/assets/img/iwc.svg" alt="Indie Web Camp logo" class="iwc-logo"></a>
|
||||
</footer>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue