You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

44 lines
1.4 KiB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <meta name="robots" content="noindex, nofollow">
  8. <title>{{ page_title }}</title>
  9. <link rel="stylesheet" href="{{ url('static', filename='style.css') }}">
  10. </head>
  11. <body>
  12. <main>
  13. <h1>{{ page_title }}</h1>
  14. <form method="post">
  15. <label for="username">Username</label>
  16. <input id="username" name="username" value="{{ get('username', '') }}" type="text" required autofocus>
  17. <label for="old-password">Old password</label>
  18. <input id="old-password" name="old-password" type="password" required>
  19. <label for="new-password">New password</label>
  20. <input id="new-password" name="new-password" type="password"
  21. pattern=".{8,}" x-moz-errormessage="Password must be at least 8 characters long." required>
  22. <label for="confirm-password">Confirm new password</label>
  23. <input id="confirm-password" name="confirm-password" type="password"
  24. pattern=".{8,}" x-moz-errormessage="Password must be at least 8 characters long." required>
  25. <button type="submit">Update password</button>
  26. </form>
  27. <div class="alerts">
  28. %for type, text in get('alerts', []):
  29. <div class="alert {{ type }}">{{ text }}</div>
  30. %end
  31. </div>
  32. </main>
  33. </body>
  34. </html>