mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-22 16:23:18 +01:00
Fix #111 - Remove inappropriate notification during registration
This commit is contained in:
parent
d1708b9c9b
commit
5800308e93
@ -72,7 +72,7 @@
|
||||
this.showWebauthnRegistration = true
|
||||
})
|
||||
.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 })
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user