summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/StartPageLogin.vue
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/src/components/StartPageLogin.vue')
-rw-r--r--webapp/src/components/StartPageLogin.vue8
1 files changed, 4 insertions, 4 deletions
diff --git a/webapp/src/components/StartPageLogin.vue b/webapp/src/components/StartPageLogin.vue
index 87d4054..3e4b5b8 100644
--- a/webapp/src/components/StartPageLogin.vue
+++ b/webapp/src/components/StartPageLogin.vue
@@ -75,7 +75,7 @@ export default {
},
login () {
if (this.$refs.form.validate()) {
- this.$http.post('/api/authentication/login', { username: this.username, password: this.password })
+ this.$http.post('/api/authentication/cookies', { username: this.username, password: this.password })
.then(response => {
const nextRoute = this.$store.state.loginRedirect
if (nextRoute) this.$router.replace(nextRoute)
@@ -83,12 +83,12 @@ export default {
this.$socket.open()
})
.catch(error => {
- if (error.response.data.status === 'USER_NOTFOUND') {
+ if (error.response.data.error === 'USER_NOTFOUND') {
this.usernameError = true
- } else if (error.response.data.status === 'PASSWORD_INVALID') {
+ } else if (error.response.data.error === 'PASSWORD_INVALID') {
this.passwordError = true
} else {
- this.$snackbar({ color: 'error', text: error.response.data.error_message })
+ this.$snackbar({ color: 'error', text: error.response.data.message })
}
this.$refs.form.validate()
})