🚧 move to new config based env

This commit is contained in:
2020-12-20 18:07:58 +01:00
parent 8ef0b21819
commit 2cdd1cd961
5 changed files with 19 additions and 16 deletions

View File

@@ -1,7 +1,6 @@
<script>
import store from "../store.js";
import { _ } from "svelte-i18n";
import { config } from "../dev.env";
store.init();
import { push, pop, replace } from "svelte-spa-router";
//
@@ -24,12 +23,12 @@
}).showToast();
let username = usersUsername;
let password = usersPassword;
if (username.length == 0) {
username = config.default_username || "demo";
}
if (password.length == 0) {
password = config.default_password || "demo";
}
// if (usersUsername.length == 0) {
username = config.fallback_username || "demo";
// }
// if (usersPassword.length == 0) {
password = config.fallback_password || "demo";
// }
AuthService.authControllerLogin({
username,
password,