diff --git a/src/components/Login.svelte b/src/components/Login.svelte index c3992749..b3e4fc55 100644 --- a/src/components/Login.svelte +++ b/src/components/Login.svelte @@ -3,14 +3,12 @@ import { _ } from "svelte-i18n"; store.init(); import { push, pop, replace } from "svelte-spa-router"; - // import { OpenAPI, AuthService } from "@odit/lfk-client-js"; OpenAPI.BASE = config.baseurl; - // import Toastify from "toastify-js"; import "toastify-js/src/toastify.css"; - let usersUsername, - usersPassword = ""; + let usersUsername; + let usersPassword = ""; let last_loginclick_processed = true; const login = async () => { @@ -23,10 +21,10 @@ }).showToast(); let username = usersUsername; let password = usersPassword; - // if (usersUsername.length == 0) { + // if ((usersUsername + "").length == 0) { username = config.fallback_username || "demo"; // } - // if (usersPassword.length == 0) { + // if ((usersPassword + "").length == 0) { password = config.fallback_password || "demo"; // } AuthService.authControllerLogin({