mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-04-16 21:48:36 +02:00
Fix #111 - Remove inappropriate notification during registration
This commit is contained in:
parent
d1708b9c9b
commit
5800308e93
@ -72,7 +72,7 @@
|
|||||||
this.showWebauthnRegistration = true
|
this.showWebauthnRegistration = true
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
if( error.response.status === 422 && error.response.data.errors.name ) {
|
if( error.response.status === 422 && error.response.data.errors.name.includes(this.$t('validation.custom.name.firstUser')) ) {
|
||||||
|
|
||||||
this.$notify({ type: 'is-danger', text: this.$t('errors.cannot_register_more_user'), duration:-1 })
|
this.$notify({ type: 'is-danger', text: this.$t('errors.cannot_register_more_user'), duration:-1 })
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user