mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-13 15:37:08 +02:00
Fix back-end paths called by Vue front-end
This commit is contained in:
@ -68,7 +68,7 @@
|
||||
submitProfile(e) {
|
||||
e.preventDefault()
|
||||
|
||||
this.formProfile.put('/api/v1/user', {returnError: true})
|
||||
this.formProfile.put('/user', {returnError: true})
|
||||
.then(response => {
|
||||
this.$notify({ type: 'is-success', text: this.$t('auth.forms.profile_saved') })
|
||||
})
|
||||
@ -86,7 +86,7 @@
|
||||
submitPassword(e) {
|
||||
e.preventDefault()
|
||||
|
||||
this.formPassword.patch('/api/v1/user/password', {returnError: true})
|
||||
this.formPassword.patch('/user/password', {returnError: true})
|
||||
.then(response => {
|
||||
|
||||
this.$notify({ type: 'is-success', text: response.data.message })
|
||||
|
Reference in New Issue
Block a user