ui: Fix forgotten-password page
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
6a804323c3
commit
f3043a8606
@ -141,24 +141,11 @@ export default {
|
|||||||
|
|
||||||
mounted () {
|
mounted () {
|
||||||
if (this.$route.query.u) {
|
if (this.$route.query.u) {
|
||||||
axios
|
|
||||||
.post('/api/users/' + encodeURIComponent(this.$route.query.u) + '/recovery', {
|
|
||||||
key: this.$route.query.k
|
|
||||||
})
|
|
||||||
.then(
|
|
||||||
(response) => {
|
|
||||||
this.error = ''
|
|
||||||
this.user = this.$route.query.u
|
this.user = this.$route.query.u
|
||||||
},
|
|
||||||
(error) => {
|
|
||||||
this.error = error.response.data.errmsg
|
|
||||||
this.user = ''
|
|
||||||
}
|
|
||||||
)
|
|
||||||
} else {
|
} else {
|
||||||
this.error = ''
|
|
||||||
this.user = ''
|
this.user = ''
|
||||||
}
|
}
|
||||||
|
this.error = ''
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user