use hard location assignment after successful login
All checks were successful
delpoy / build-and-deploy (push) Successful in 42s
All checks were successful
delpoy / build-and-deploy (push) Successful in 42s
This commit is contained in:
parent
b2d18b81a8
commit
27c525d5bd
@ -1,7 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Input from '$lib/components/Input/Input.svelte';
|
import Input from '$lib/components/Input/Input.svelte';
|
||||||
import { env } from '$env/dynamic/public';
|
import { env } from '$env/dynamic/public';
|
||||||
import { goto } from '$app/navigation';
|
|
||||||
import { errorMessage } from '$lib/stores';
|
import { errorMessage } from '$lib/stores';
|
||||||
|
|
||||||
let passwordValue: string;
|
let passwordValue: string;
|
||||||
@ -13,7 +12,7 @@
|
|||||||
body: new FormData(document.forms[0])
|
body: new FormData(document.forms[0])
|
||||||
});
|
});
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
await goto(`${env.PUBLIC_BASE_PATH}/admin`, { invalidateAll: true });
|
window.location = `${env.PUBLIC_BASE_PATH}/admin`;
|
||||||
resolve();
|
resolve();
|
||||||
} else if (response.status == 401) {
|
} else if (response.status == 401) {
|
||||||
passwordValue = '';
|
passwordValue = '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user