FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    Checking password rules before submission

    Scheduled Pinned Locked Moved Unsolved
    Q&A
    1
    3
    440
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • danD
      dan
      last edited by

      On the change password screen, the password validator currently activates only when the form is submitted.

      Is there an existing way to leverage the validator as soon as some one has typed in their password and they are reconfirming it? I'd like to give them some feedback asap if their password doesn't pass the rules.

      Or do we have to write custom javascript for this?

      --
      FusionAuth - Auth for devs, built by devs.
      https://fusionauth.io

      danD 1 Reply Last reply Reply Quote 0
      • danD
        dan @dan
        last edited by

        You have to write custom javascript, but the rules you have configured in the tenant are available in the passwordValidationRules object.

        Here is example JavaScript you may use a starting point.

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

        danD 1 Reply Last reply Reply Quote 0
        • danD
          dan @dan
          last edited by

          This is now documented here: https://fusionauth.io/docs/v1/tech/themes/client-side-password-rule-validation

          --
          FusionAuth - Auth for devs, built by devs.
          https://fusionauth.io

          1 Reply Last reply Reply Quote 0
          • First post
            Last post