🚧 move to new config based env
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user