Mercurial > gemma
comparison client/src/stores/user.js @ 532:04a6bea229e4
Client: fix code comment for login.
* Remove outdated comment that was leftover from the change
done with revision 493:2ac37419f593.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Tue, 28 Aug 2018 13:46:47 +0200 |
parents | 2ac37419f593 |
children |
comparison
equal
deleted
inserted
replaced
531:9c036b32c852 | 532:04a6bea229e4 |
---|---|
62 }, | 62 }, |
63 actions: { | 63 actions: { |
64 login({ commit }, user) { | 64 login({ commit }, user) { |
65 // using POST is a bit more secure than GET | 65 // using POST is a bit more secure than GET |
66 return new Promise((resolve, reject) => { | 66 return new Promise((resolve, reject) => { |
67 // axios will add the application/x-www-form-urlencoded header this way | |
68 HTTP.post("/login", user) | 67 HTTP.post("/login", user) |
69 .then(response => { | 68 .then(response => { |
70 commit("auth_success", response.data); | 69 commit("auth_success", response.data); |
71 resolve(response); | 70 resolve(response); |
72 }) | 71 }) |