From e63a8592099141566bcde69c651b3bd669a71554 Mon Sep 17 00:00:00 2001 From: pawlaczyk Date: Thu, 10 Jan 2019 05:41:28 +0100 Subject: [PATCH] Poprawienie logowania --- frontend/app/src/components/Navbar.vue | 2 ++ frontend/app/src/views/Cards.vue | 5 +--- frontend/app/src/views/Login.vue | 23 +++++++++++----- frontend/app/src/views/Register.vue | 36 +++++++++++++++++++------- 4 files changed, 46 insertions(+), 20 deletions(-) diff --git a/frontend/app/src/components/Navbar.vue b/frontend/app/src/components/Navbar.vue index 92c6dc2..113d993 100644 --- a/frontend/app/src/components/Navbar.vue +++ b/frontend/app/src/components/Navbar.vue @@ -110,6 +110,8 @@ export default { this.snackbarLogout = true this.isLogged = false console.log("wylogowano") + window.location.replace("http://localhost:8080"); + } else{ this.snackbarLogout = false diff --git a/frontend/app/src/views/Cards.vue b/frontend/app/src/views/Cards.vue index 4d19e26..cc0a56e 100644 --- a/frontend/app/src/views/Cards.vue +++ b/frontend/app/src/views/Cards.vue @@ -1,9 +1,6 @@