fix: connexion

This commit is contained in:
2023-11-29 16:05:49 +01:00
parent b5b54a98ba
commit 6dc0293455
9 changed files with 88 additions and 27 deletions

View File

@ -1,5 +1,5 @@
import AbstractView from "../AbstractView.js";
import { client } from "../../index.js";
import { client, navigateTo } from "../../index.js";
async function register()
{
@ -30,6 +30,11 @@ export default class extends AbstractView {
async postInit()
{
if (client.isAuthentificate())
{
navigateTo("/home")
return;
}
document.getElementById("button").onclick = register;
}