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 () {
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 = ''
}
)
this.user = this.$route.query.u
} else {
this.error = ''
this.user = ''
}
this.error = ''
},
methods: {