2024-02-07 01:18:17 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<title>{{.ServiceName}}</title>
|
2024-10-25 15:08:56 +01:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
2024-05-16 03:06:10 +01:00
|
|
|
<link rel="stylesheet" href="/assets/style.css">
|
2024-02-07 01:18:17 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2024-05-16 03:06:10 +01:00
|
|
|
{{template "header.go.html" .}}
|
2024-02-07 01:18:17 +00:00
|
|
|
<main>
|
2024-05-16 03:06:10 +01:00
|
|
|
<div>Logged in as: {{.Auth.UserInfo.name}} ({{.Auth.Subject}})</div>
|
2024-02-07 01:18:17 +00:00
|
|
|
<div>
|
|
|
|
<form method="GET" action="/manage/apps">
|
|
|
|
<button type="submit">Manage Applications</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
2024-02-08 01:16:14 +00:00
|
|
|
{{if .IsAdmin}}
|
|
|
|
<div>
|
|
|
|
<form method="GET" action="/manage/users">
|
|
|
|
<button type="submit">Manage Users</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2024-10-25 15:08:56 +01:00
|
|
|
{{if .OtpEnabled}}
|
|
|
|
<div>
|
|
|
|
<form method="POST" action="/edit/otp">
|
|
|
|
<input type="hidden" name="remove" value="1"/>
|
|
|
|
<button type="submit">Remove OTP</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
<div>
|
|
|
|
<form method="POST" 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>
|
|
|
|
{{end}}
|
2024-02-07 01:18:17 +00:00
|
|
|
<div>
|
|
|
|
<form method="POST" action="/logout">
|
|
|
|
<input type="hidden" name="nonce" value="{{.Nonce}}">
|
|
|
|
<button type="submit">Log Out</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
</body>
|
|
|
|
</html>
|