changeset 227:6620b5f649f8

Login controller is now called with POST to /login.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 26 Jul 2018 12:36:35 +0200
parents 63dd5216eee4
children bd96611a7555
files client/src/stores/user.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/stores/user.js	Thu Jul 26 12:24:30 2018 +0200
+++ b/client/src/stores/user.js	Thu Jul 26 12:36:35 2018 +0200
@@ -57,7 +57,7 @@
   actions: {
     login({ commit }, user) {
       return new Promise((resolve, reject) => {
-        HTTP.get("/token", { params: user })
+        HTTP.post("/login", { params: user })
           .then(response => {
             commit("auth_success", response.data);
             resolve(response);