Some Code Cleanup
This commit is contained in:
@@ -7,11 +7,10 @@ import localBau from "@images/2023-10-08_20.43.43.png";
|
||||
---
|
||||
|
||||
<NavbarLayout title={t("login.page")}>
|
||||
<script>
|
||||
<script is:inline>
|
||||
import {l} from "../util/util";
|
||||
import {AES} from "crypto-js";
|
||||
|
||||
if (AES.decrypt(localStorage.getItem("sw-session") ?? "", import.meta.env.PUBLIC_SECRET)?.toString() !== "") {
|
||||
if ((localStorage.getItem("sw-session") ?? "") !== "") {
|
||||
window.location.href = l("/dashboard");
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user