{# Shared new-password + confirm-password inputs with the live-requirement checklist. Used by signup.html, reset_password.html, and the account modal's change-password view in chat.html so the field markup and the requirement list live in exactly one place. auth-password-rules.js drives the live feedback by id (#password, #confirm_password, #password-requirements) and auth-password-field.js adds the Show/Hide toggle and Caps Lock warning to every password input. Params: new_placeholder placeholder for the new-password input confirm_placeholder placeholder for the confirmation input with_names emit name="" + required (HTML form posts need them; the JS/fetch-driven account modal collects values by id and does not) #} {% macro password_fields(new_placeholder="New password", confirm_placeholder="Confirm new password", with_names=True) %} {% endmacro %}