Change to PW
This commit is contained in:
@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user