reset_pwd2.html 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <!-- 宣告我們要套用模板 -->
  2. {% extends "sign_in_base.html" %}
  3. {% block script %}
  4. <script src="../static/js/reset_pwd2.js"></script>
  5. {% endblock %}
  6. {% block style %}
  7. <style>
  8. .form-signin {
  9. max-width: 330px;
  10. padding: 15px;
  11. }
  12. .form-signin .form-floating:focus-within {
  13. z-index: 2;
  14. }
  15. .form-signin input[type="email"] {
  16. margin-bottom: -1px;
  17. border-bottom-right-radius: 0;
  18. border-bottom-left-radius: 0;
  19. }
  20. .form-signin input[type="password"] {
  21. margin-bottom: 10px;
  22. border-top-left-radius: 0;
  23. border-top-right-radius: 0;
  24. }
  25. </style>
  26. {% endblock %}
  27. {% block main %}
  28. <form form method="post" action="/reset_password">
  29. <img class="mb-4" src="../static/img/ALMIGHTY_RAY.jpg" alt="" >
  30. <img class="mb-4" src="../static/img/SKYAI.jpg" alt="" >
  31. <h1 class="h3 mb-3 fw-normal">Reset password</h1>
  32. <h1 class="h5 mb-5 fw-normal">create a new password</h1>
  33. <div class="form-floating">
  34. <input type="password" class="form-control" id="new_pwd" name="new_pwd" placeholder="新密碼/New password" minlength="6"
  35. maxlength="12"required>
  36. <label for="new_pwd">新密碼/New password</label>
  37. </div>
  38. <div class="form-floating">
  39. <input type="password" class="form-control" id="confirm_pwd" name="confirm_pwd" placeholder="確認密碼/Confirm password" minlength="6"
  40. maxlength="12" oninput="setCustomValidity('');" onchange="if(document.getElementById('new_pwd').value != document.getElementById('confirm_pwd').value){setCustomValidity('密碼不吻合');}"required>
  41. <label for="confirm_pwd">確認密碼/Confirm password</label>
  42. </div>
  43. <div class="checkbox mb-3">
  44. <label>
  45. </label>
  46. </div>
  47. <button class="w-40 btn btn-lg btn-secondary" type="submit">Confirm</button>
  48. <button class="w-40 btn btn-lg btn-secondary" type="button" onclick="ResetPassword();">Cancel</button>
  49. </form>
  50. {% endblock %}