go-wiki/templates/password.html
2026-07-14 20:46:19 +02:00

27 lines
932 B
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Passwort erforderlich Wiki</title>
<link rel="stylesheet" href="/static/style.css">
</head>
<body class="password-page">
<div class="card">
<h1>Geschützte Seite</h1>
<p>Diese Seite ist mit einem Passwort geschützt.</p>
{{/* Wenn .Error nicht leer ist, zeigen wir die Fehlermeldung an */}}
{{if .Error}}
<div class="error">{{.Error}}</div>
{{end}}
{{/* Das Formular sendet ein POST an /auth/:path */}}
<form method="POST" action="/auth/{{.Path}}">
<label for="password">Passwort</label>
<input type="password" id="password" name="password" autofocus placeholder="Passwort eingeben">
<button type="submit">Weiter</button>
</form>
</div>
</body>
</html>