thank it’s a very helpful solution and clear description thank you very much
Topic summary
A user asks how to increase the minimum password length from 5 to 12 characters for customer account activation and password reset pages, noting they cannot find relevant settings in Shopify or the theme’s liquid files.
Two solutions are proposed:
-
JavaScript validation approach: Add custom JavaScript to theme.liquid that targets password input fields and enforces a 12-character minimum using
setCustomValidity(). This requires jQuery to be included in the theme. -
HTML pattern validation (recommended): Directly modify the password input elements in
main-activate-account.liquidandmain-reset-password.liquidfiles by adding HTML5 attributes:pattern="regex"andtitle="error message". This method provides native browser validation without requiring additional JavaScript libraries.
A detailed guide is referenced on the Helium Dev blog for implementing strong password validation on Shopify customer account activation pages. The original poster confirms the solutions are helpful.