From 6982be9d97492e0d17c9393b688430e23e8269ca Mon Sep 17 00:00:00 2001 From: Torsten Schulz Date: Wed, 4 Sep 2024 11:00:24 +0200 Subject: [PATCH] Changed API URL for login --- frontend/src/views/Login.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/Login.vue b/frontend/src/views/Login.vue index b5d2ab1..39e4f31 100644 --- a/frontend/src/views/Login.vue +++ b/frontend/src/views/Login.vue @@ -24,7 +24,7 @@ export default { ...mapActions(['login']), async executeLogin() { try { - const response = await axios.post('http://localhost:3000/api/auth/login', { email: this.email, password: this.password }, { + const response = await axios.post(`${process.env.BACKEND}/api/auth/login`, { email: this.email, password: this.password }, { timeout: 5000, }); await this.login({ token: response.data.token, username: this.email });