ui: Fix forgotten-password page
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
nemunaire 2022-03-30 19:36:47 +02:00
parent 6a804323c3
commit f3043a8606

View File

@ -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: {