You've already forked docker-ldap-change-password-web-ui
Initial version.
This commit is contained in:
43
templates/index.html
Normal file
43
templates/index.html
Normal file
@ -0,0 +1,43 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
|
||||
<title>{{.Title}}</title>
|
||||
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<main>
|
||||
<h1>{{.Title}}</h1>
|
||||
|
||||
<form method="post">
|
||||
<label for="username">Username</label>
|
||||
<input id="username" name="username" value="{{.Username}}" type="text" required autofocus>
|
||||
|
||||
<label for="old-password">Old password</label>
|
||||
<input id="old-password" name="old-password" type="password" required>
|
||||
|
||||
<label for="new-password">New password</label>
|
||||
<input id="new-password" name="new-password" type="password"
|
||||
pattern=".{8,}" x-moz-errormessage="Password must be at least 8 characters long." required>
|
||||
|
||||
<label for="confirm-password">Confirm new password</label>
|
||||
<input id="confirm-password" name="confirm-password" type="password"
|
||||
pattern=".{8,}" x-moz-errormessage="Password must be at least 8 characters long." required>
|
||||
|
||||
<button type="submit">Update password</button>
|
||||
</form>
|
||||
|
||||
<div class="alerts">
|
||||
{{ range $key, $value := .Alerts }}
|
||||
<div class="alert {{ $key }}">{{ $value }}</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user