Enable webauthn device registration during user registration

This commit is contained in:
Bubka
2023-10-05 14:34:54 +02:00
parent b59ad21755
commit beeaed9565
3 changed files with 33 additions and 95 deletions

View File

@ -41,7 +41,6 @@
router.push({ name: 'settings.webauthn.editCredential', params: { credentialId: JSON.parse(response.config.data).id, name: trans('auth.webauthn.my_device') } })
})
.catch(error => {
console.log(error)
if ('webauthn' in error) {
if (error.name == 'is-warning') {
notify.warn({ text: trans(error.message) })