mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-13 23:38:32 +02:00
Fix PAT & Webauthn registration - Fixes #227
This commit is contained in:
@ -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') })
|
||||
|
Reference in New Issue
Block a user