From 9df4f2aa3987520e6dad7d28af3413c12d84d894 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} -