tulip/pages/index.go.html

38 lines
1.1 KiB
HTML
Raw Normal View History

2023-09-06 22:20:09 +01:00
<!DOCTYPE html>
<html lang="en">
<head>
<title>1f349 ID</title>
</head>
<body>
<header>
<h1>1f349 ID</h1>
</header>
<main>
<div>Logged in as: {{.User.Name}} ({{.User.Sub}})</div>
2023-09-06 22:20:09 +01:00
<div>
<button onclick="location.href='/edit'">Edit Profile</button>
</div>
<div>
<button onclick="location.href='/edit/username'">Change username</button>
</div>
<div>
<button onclick="location.href='/edit/password'">Change password</button>
</div>
<div>
<form method="GET" action="/edit/otp">
<label> <input type="radio" name="digits" value="6"/> 6 digits </label>
<label> <input type="radio" name="digits" value="7"/> 7 digits </label>
<label> <input type="radio" name="digits" value="8"/> 8 digits </label>
<button type="submit">Change OTP</button>
</form>
</div>
<div>
<form method="POST" action="/logout">
<input type="hidden" name="nonce" value="{{.Nonce}}">
2023-09-06 22:20:09 +01:00
<button type="submit">Log Out</button>
</form>
</div>
</main>
</body>
</html>