Validating User Registration Fields while entering information before POST



  • Hi,

    I haven't found anything about this, but is there a way to validate the input in a user registration form while entering the information e.g.:

    • Mark red skipped must fields
    • Show password policy when password is not according to policy
    • Show password is not identical when entering it twice

    And especially based on the configuration, not just manual by some template / html hacks as every application has potential different requirements.

    Thanks, Aaron



  • Hi @aaron,

    Thanks for writing in!

    There are a couple of options.

    If you are hoping to customize messages your users may see when registering via the configuration screen of your FusionAuth backend, you can find in-depth instructions on how to do so here.

    If you are looking to modify the messages to your users in these form fields using an API, you can go here for some in-depth instructions on how to do that. (see: modifying the messages file).

    This will allow you to customize the messages the user receives when a form field is incorrectly filled out or skipped.

    FWIW, if you are on our paid versions, we offer another layer of password validation using breached password detection. You can find more information on that here.

    Please let me know if this helps!



  • @aaron

    Too add to what Akira mentioned, please keep in mind that advanced registration forms are a paid feature (developer plan or higher) within FusionAuth. Within this feature set, you can use regex commands and add your own custom validation as shown below.

    ba3d6675-f745-4ace-9ce5-2c633c2a5f52-image.png

    Additionally, under tenants > password there are a number of custom password rules that you can set as well.

    In addition to the tenant, there are also some password rules that you can configure on the application level under applications > registration > self-service registration > enabled > type: basic . Here is where you will find a confirm password toggle as well.

    Finally, the above applies to a POST event. Meaning the form has to be submitted before feedback is displayed to the user indicating that they failed validation.

    There are some Github issues that we are tracking for more realtime validation like events as well. If you have a unique use case - feel free to log an issue as well.

    https://github.com/FusionAuth/fusionauth-issues/issues/1223

    Thanks
    Josh


Log in to reply
 

Looks like your connection to FusionAuth Forum was lost, please wait while we try to reconnect.