WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. DonaldScott
    Member
    Posted 1 year ago #

    Hello,

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

    http://wordpress.org/support/topic/plugin-wp-members-pick-your-own-password-functionality-does-not-work?replies=11

    http://wordpress.org/support/topic/plugin-wp-members-password-during-registration?replies=2

    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?

    Thanks!

    http://wordpress.org/extend/plugins/wp-members/

  2. Chad Butler
    Member
    Plugin Author

    Posted 1 year 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:
    http://rocketgeek.com/plugins/wp-members/users-guide/filter-hooks/wpmem_pre_register_data/

    A full list of action and filter hooks in the plugin:
    http://rocketgeek.com/plugins/wp-members/users-guide/filter-hooks/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.