[buddypress-trac] [BuddyPress Trac] #8066: Missing password validation at password change
buddypress-trac
noreply at wordpress.org
Sat Jul 4 13:29:56 UTC 2020
#8066: Missing password validation at password change
-------------------------+---------------------
Reporter: devnik | Owner: imath
Type: enhancement | Status: closed
Priority: high | Milestone: 7.0.0
Component: Members | Version: 4.1.0
Severity: normal | Resolution: fixed
Keywords: has-patch |
-------------------------+---------------------
Changes (by imath):
* owner: (none) => imath
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"12679" 12679]:
{{{
#!CommitTicketReference repository="" revision="12679"
BP Members: improve our password validation process
We're introducing a new function to validate the member's chosen password:
`bp_members_validate_user_password()`.
This function is primarly used to check the password is not empty, and to
make sure the password confirmation matches the password. If it's the
case, the function will return a `WP_Error` object with no error message.
Otherwise this object will contain an error message.
Plugins can now use the `bp_members_validate_user_password` filter to add
their own error messages according to a custom validation process. See the
last unit tests of this commit for an example of use.
Props devnik, tharsheblows
Fixes #8066
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8066#comment:12>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list