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 () {
|
||||
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
|
||||
},
|
||||
(error) => {
|
||||
this.error = error.response.data.errmsg
|
||||
this.user = ''
|
||||
}
|
||||
)
|
||||
} else {
|
||||
this.error = ''
|
||||
this.user = ''
|
||||
}
|
||||
this.error = ''
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user