We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f04d94d commit afc3e0bCopy full SHA for afc3e0b
adminforth/spa/src/views/LoginView.vue
@@ -160,6 +160,10 @@ const backgroundPosition = computed(() => {
160
return coreStore.config?.loginBackgroundPosition || '1/2';
161
});
162
163
+async function loadPublicConfig() {
164
+ await coreStore.getPublicConfig();
165
+}
166
+
167
onBeforeMount(() => {
168
if (localStorage.getItem('isAuthorized') === 'true') {
169
// if route has next param, redirect
@@ -173,6 +177,7 @@ onBeforeMount(() => {
173
177
})
174
178
175
179
onMounted(async () => {
180
+ loadPublicConfig();
176
181
if (coreStore.config?.demoCredentials) {
182
const [demoUsername, demoPassword] = coreStore.config.demoCredentials.split(':');
183
username.value = demoUsername;
0 commit comments