The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

WP-Members: Membership Framework
[resolved] When the user chooses their own password, can we make them enter it twice? (2 posts)

  1. DonaldScott
    Posted 3 years ago #


    I understand that WP-Members allows users to choose their own password at registration, as described here:



    This is a very helpful feature to have!

    In many systems, when the user is allowed to choose their own password at registration, the system asks them to enter it twice, to confirm that they spelled it correctly (since the characters are not displayed).

    In the WP-Members Settings, in the Dialogs section, there is a message which says:

    Passwords did not match.<br /><br />Please try again.

    This sounds like it would be displayed when the user is choosing their own password, and they entered it twice but the passwords didn't match.

    Is that what the above dialog is intended to be used for?

    If so, field name field name (option name) should we use for the second occurrence of the password field on the registration form?



  2. Chad Butler
    Plugin Author

    Posted 3 years ago #

    That dialog is for creating a new password via the user settings.

    If you want to allow the user to choose a password at registration and enter twice for validation, you'd have to write some custom error checking to validate. Any custom form validation can be done by hooking into the wpmem_pre_register_data action hook. At that point the plugin has already done it's own form validation, but the user has not been inserted yet. So a custom function here could validate whatever you want to validate and return an error message.

    Documentation on this hook:

    A full list of action and filter hooks in the plugin:

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Members: Membership Framework
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.