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
|
major: 0
|
||||||
minor: 11
|
minor: 11
|
||||||
patch: 2
|
patch: 2
|
||||||
prerelease: 1-g4221167
|
prerelease: 2-g3c10845
|
||||||
buildmetadata: ''
|
buildmetadata: ''
|
||||||
commit: '422116'
|
commit: 3c1084
|
||||||
timestamp:
|
timestamp:
|
||||||
year: 2020
|
year: 2020
|
||||||
month: 10
|
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.
|
If nothing happens then click the button below to authenticate.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<form method="POST" action="{{ route('webauthn.auth') }}" id="form">
|
<form method="POST" onsubmit="authenticateDevice();return false" action="{{ route('webauthn.auth') }}" id="form">
|
||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="data" id="data" />
|
<input type="hidden" name="data" id="data" />
|
||||||
</form>
|
</form>
|
||||||
|
@ -63,7 +63,6 @@
|
||||||
var publicKey = {!! json_encode($publicKey) !!};
|
var publicKey = {!! json_encode($publicKey) !!};
|
||||||
|
|
||||||
var errors = {
|
var errors = {
|
||||||
key_already_used: "{{ trans('webauthn::errors.key_already_used') }}",
|
|
||||||
key_not_allowed: "{{ trans('webauthn::errors.key_not_allowed') }}",
|
key_not_allowed: "{{ trans('webauthn::errors.key_not_allowed') }}",
|
||||||
not_secured: "{{ trans('webauthn::errors.not_secured') }}",
|
not_secured: "{{ trans('webauthn::errors.not_secured') }}",
|
||||||
not_supported: "{{ trans('webauthn::errors.not_supported') }}",
|
not_supported: "{{ trans('webauthn::errors.not_supported') }}",
|
||||||
|
@ -72,7 +71,7 @@
|
||||||
function errorMessage(name, message) {
|
function errorMessage(name, message) {
|
||||||
switch (name) {
|
switch (name) {
|
||||||
case 'InvalidStateError':
|
case 'InvalidStateError':
|
||||||
return errors.key_already_used;
|
return errors.key_not_allowed;
|
||||||
case 'NotAllowedError':
|
case 'NotAllowedError':
|
||||||
return errors.key_not_allowed;
|
return errors.key_not_allowed;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
{{ trans('webauthn::messages.noButtonAdvise') }}
|
{{ trans('webauthn::messages.noButtonAdvise') }}
|
||||||
</p>
|
</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
|
@csrf
|
||||||
<input type="hidden" name="register" id="register">
|
<input type="hidden" name="register" id="register">
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue