[wp-trac] [WordPress Trac] #12682: Multiple password reset emails can be annoying
WordPress Trac
noreply at wordpress.org
Sun Mar 2 16:40:39 UTC 2014
#12682: Multiple password reset emails can be annoying
----------------------------+-----------------------
Reporter: SergeyBiryukov | Owner:
Type: enhancement | Status: assigned
Priority: normal | Milestone: 3.9
Component: Users | Version: 2.9.2
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
----------------------------+-----------------------
Comment (by nikolov.tmw):
Maybe introduce a filter for the amount of requests that are allowed? So
instead of :
`$user_pass_requests['count'] >= 5`
have
`$user_pass_requests['count'] >= intval( apply_filters(
'max_resetpass_requests', 5, $user_data ) )`
The same can also apply for the timeframe. This way for instance plugins
can say - allow only 1 reset password request every 1 week. It would also
allow(since we're passing $user_data as a second argument in the filter)
specific users/user roles to have different settings(so maybe it would be
less attempts for admins and more attempts for subscribers).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/12682#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list