parent
3c10845c82
commit
a4fd2df67b
5 changed files with 795 additions and 850 deletions
420
composer.lock
generated
420
composer.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -5,9 +5,9 @@ current:
|
|||
major: 0
|
||||
minor: 11
|
||||
patch: 2
|
||||
prerelease: 1-g4221167
|
||||
prerelease: 2-g3c10845
|
||||
buildmetadata: ''
|
||||
commit: '422116'
|
||||
commit: 3c1084
|
||||
timestamp:
|
||||
year: 2020
|
||||
month: 10
|
||||
|
|
1214
package-lock.json
generated
1214
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -35,7 +35,7 @@
|
|||
If nothing happens then click the button below to authenticate.
|
||||
</p>
|
||||
|
||||
<form method="POST" action="{{ route('webauthn.auth') }}" id="form">
|
||||
<form method="POST" onsubmit="authenticateDevice();return false" action="{{ route('webauthn.auth') }}" id="form">
|
||||
@csrf
|
||||
<input type="hidden" name="data" id="data" />
|
||||
</form>
|
||||
|
@ -63,7 +63,6 @@
|
|||
var publicKey = {!! json_encode($publicKey) !!};
|
||||
|
||||
var errors = {
|
||||
key_already_used: "{{ trans('webauthn::errors.key_already_used') }}",
|
||||
key_not_allowed: "{{ trans('webauthn::errors.key_not_allowed') }}",
|
||||
not_secured: "{{ trans('webauthn::errors.not_secured') }}",
|
||||
not_supported: "{{ trans('webauthn::errors.not_supported') }}",
|
||||
|
@ -72,7 +71,7 @@
|
|||
function errorMessage(name, message) {
|
||||
switch (name) {
|
||||
case 'InvalidStateError':
|
||||
return errors.key_already_used;
|
||||
return errors.key_not_allowed;
|
||||
case 'NotAllowedError':
|
||||
return errors.key_not_allowed;
|
||||
default:
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
{{ trans('webauthn::messages.noButtonAdvise') }}
|
||||
</p>
|
||||
|
||||
<form method="POST" class="mt-8" action="{{ route('webauthn.store') }}" id="form">
|
||||
<form method="POST" onsubmit="registerDevice();return false" class="mt-8" action="{{ route('webauthn.store') }}" id="form">
|
||||
@csrf
|
||||
<input type="hidden" name="register" id="register">
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue