Fix PAT & Webauthn registration - Fixes #227

This commit is contained in:
Bubka
2023-09-14 13:39:48 +02:00
parent 43d7922732
commit a0b3b668bb
4 changed files with 14 additions and 6 deletions

View File

@ -25,13 +25,13 @@
}
},
props: ['id', 'name'],
props: ['credentialId', 'name'],
methods: {
async updateCredential() {
await this.form.patch('/webauthn/credentials/' + this.id + '/name')
await this.form.patch('/webauthn/credentials/' + this.credentialId + '/name')
if( this.form.errors.any() === false ) {
this.$notify({ type: 'is-success', text: this.$t('auth.webauthn.device_successfully_registered') })