Added logout

This commit is contained in:
2024-03-12 20:27:39 +01:00
parent f52674b179
commit 3d3fb3c826
4 changed files with 25 additions and 1 deletions

View File

@ -8,6 +8,6 @@
<input name="password" placeholder="Neues Passwort" type="password" />
<input name="password2" placeholder="Wiederholen" type="password" />
<input type="submit" hx-post="/update-user/" hx-target="#page-content" />
<input type="submit" value="Aktualisieren" hx-post="/update-user/" hx-target="#page-content" />
</form>
{{end}}

View File

@ -10,6 +10,7 @@
<body>
<h1>Orient Editor</h1>
<button hx-get="logout" hx-target="#page-content">Abmelden</button>
<div id="page-content">
{{template "page-content" .}}