2023-09-09 01:38:10 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
2023-09-15 13:06:31 +01:00
|
|
|
<title>{{.ServiceName}}</title>
|
2023-12-17 15:55:41 +00:00
|
|
|
<link rel="stylesheet" href="/theme/dark.css" media="screen and (prefers-color-scheme: dark)">
|
2023-09-09 01:38:10 +01:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<header>
|
2023-09-15 13:06:31 +01:00
|
|
|
<h1>{{.ServiceName}}</h1>
|
2023-09-09 01:38:10 +01:00
|
|
|
</header>
|
|
|
|
<main>
|
|
|
|
<form method="POST" action="/edit/otp">
|
2023-10-16 16:47:18 +01:00
|
|
|
<input type="hidden" name="secret" value="{{.OtpSecret}}"/>
|
|
|
|
<input type="hidden" name="digits" value="{{.OtpDigits}}"/>
|
2023-09-09 01:38:10 +01:00
|
|
|
<p>
|
2023-10-16 15:18:34 +01:00
|
|
|
<img src="{{.OtpQr}}" style="width:{{.QrWidth}}px" alt="OTP QR code not loading"/>
|
2023-09-09 01:38:10 +01:00
|
|
|
</p>
|
2023-10-16 15:18:34 +01:00
|
|
|
<p style="display:none">Raw OTP string: {{.OtpUrl}}</p>
|
2023-09-09 01:38:10 +01:00
|
|
|
<div>
|
|
|
|
<label for="field_code">OTP Code:</label>
|
2023-11-25 15:08:44 +00:00
|
|
|
<input type="text" name="code" id="field_code" required autofocus pattern="[0-9]{6,8}" title="6/7/8 digit one time passcode"/>
|
2023-09-09 01:38:10 +01:00
|
|
|
</div>
|
|
|
|
<button type="submit">Login</button>
|
|
|
|
</form>
|
|
|
|
</main>
|
|
|
|
</body>
|
|
|
|
</html>
|