Change to PW

This commit is contained in:
2023-12-19 19:22:19 +01:00
parent aa83cddcec
commit 5a5cce199b
25 changed files with 156 additions and 244 deletions

View File

@ -20,13 +20,14 @@
<script lang="ts">
import {t} from "astro-i18n";
import type {Player} from "../types/data.ts";
import {tokenStore} from "../repo/repo.ts";
import {authRepo, tokenStore} from "../repo/repo.ts";
import {l} from "../../util/util.ts";
import Statistics from "./Statistics.svelte";
export let user: Player;
function logout() {
async function logout() {
await $authRepo.logout()
tokenStore.set("")
window.location.href = l("/login")
}