From 7b807f40f19a261c0cab6e94a4794f1a125e3b41 Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Wed, 24 Jun 2020 16:57:21 +0100 Subject: [PATCH] reverting login change from previous commit --- packages/standard-components/src/Login.svelte | 65 ++++++++++--------- 1 file changed, 35 insertions(+), 30 deletions(-) diff --git a/packages/standard-components/src/Login.svelte b/packages/standard-components/src/Login.svelte index e9d7adb843..0675c65f46 100644 --- a/packages/standard-components/src/Login.svelte +++ b/packages/standard-components/src/Login.svelte @@ -23,10 +23,7 @@ const login = async () => { loading = true - const response = await _bb.api.post("/api/authenticate", { - username, - password, - }) + const response = await _bb.api.post("/api/authenticate", { username, password }) if (response.status === 200) { const json = await response.json() localStorage.setItem("budibase:token", json.token) @@ -39,39 +36,47 @@ } -
-
-
- {#if logo} -
- logo -
- {/if} +
+
+ {#if logo} +
+ logo +
+ {/if} -