diff --git a/web/index.html b/web/index.html index c5a8d19..fe57359 100644 --- a/web/index.html +++ b/web/index.html @@ -15,6 +15,8 @@ + + @@ -54,10 +56,10 @@
- +
- +
@@ -66,7 +68,7 @@ Remember me - +

© 2017–2021

diff --git a/web/js/config.js b/web/js/config.js index 7ee7173..88833e4 100644 --- a/web/js/config.js +++ b/web/js/config.js @@ -1 +1 @@ -const instance = axios.create({ baseURL: 'http://localhost:8080/api'}); \ No newline at end of file +const instance = axios.create({ baseURL: 'http://localhost:8083/api'}); \ No newline at end of file diff --git a/web/js/login.js b/web/js/login.js index 93ab4c1..5376971 100644 --- a/web/js/login.js +++ b/web/js/login.js @@ -1 +1,5 @@ -instance.get("token", { auth:{username:"peter93", password:"toto"}}).then(function(response) { console.log(response) }); \ No newline at end of file +instance.get("token", { withCredentials: true}) + .then(function(response) { console.log(response) }) + .catch(function(error){ + + }); \ No newline at end of file