Keine Beschreibung

modal_pwd_user.html 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <div class="modal-header">
  2. <h4>Change password</h4>
  3. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
  4. aria-hidden="true">&times;</span></button>
  5. </div>
  6. <div class="modal-body">
  7. <div class="container col-md-12">
  8. <form method="post" action="" id="form_update_pwd">
  9. <div class="col-md-12 col-lg-12 col-sm-12">
  10. {{ form.hidden_tag() }}
  11. <div class="form-group mt-3">
  12. <label for="user_password" class="placeholder">Password</label>
  13. <ul >
  14. <li><small>Must contain at least {{ server_settings.password_policy_min_length }} chars</small></li>
  15. {% if server_settings.password_policy_upper_case %}
  16. <li class="text-sm"><small>Must contain at least an upper case</small></li>
  17. {% endif %}
  18. {% if server_settings.password_policy_lower_case %}
  19. <li class="text-sm"><small>Must contain at least a lower case</small></li>
  20. {% endif %}
  21. {% if server_settings.password_policy_digit %}
  22. <li class="text-sm"><small>Must contain at least a digit</small></li>
  23. {% endif %}
  24. {% if server_settings.password_policy_special_chars %}
  25. <li class="text-sm"><small>Must contain at least one of : {{ server_settings.password_policy_special_chars }}</small></li>
  26. {% endif %}
  27. </ul>
  28. <input type="password" class="form-control" id="user_password" placeholder="Password">
  29. </div>
  30. <div class="form-group mt-3">
  31. <label for="user_password" class="placeholder">Password verification</label>
  32. <input type="password" class="form-control" id="user_password_v" placeholder="Verification">
  33. </div>
  34. </div>
  35. <button type="button" class="btn btn-outline-success ml-4 mt-5 float-right"
  36. onclick="save_user_password();">Save</button>
  37. </form>
  38. </div>
  39. </div>