For passkey logins, redirect to the intended url if one was used

This commit is contained in:
Deon George 2024-08-14 19:27:02 +10:00
parent d7897d5c66
commit d5d7f4f4a0

View File

@ -120,7 +120,7 @@
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function() { $(document).ready(function() {
$('#passkey').on('click',function() { $('#passkey').on('click',function() {
passkey_check('{{ csrf_token() }}','/passkey/loggedin'); passkey_check('{{ csrf_token() }}','{{ redirect()->intended("/passkey/loggedin")->getTargetUrl() }}');
return false; return false;
}); });
}); });