[wp-trac] [WordPress Trac] #49860: Add a filter to disable the "Lost password" ability completely

WordPress Trac noreply at wordpress.org
Thu Apr 9 17:21:13 UTC 2020


#49860: Add a filter to disable the "Lost password" ability completely
------------------------------------+------------------------------
 Reporter:  ttodua                  |       Owner:  (none)
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Login and Registration  |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:                          |     Focuses:
------------------------------------+------------------------------

Comment (by Otto42):

 Well, I agree that may not be the best name for the filter, but it is what
 it is and it can't really be changed now.

 As for the patch, I would say that
 `allow_password_reset_for_existing_users` isn't the best hook name either.
 Also, if you're only allowing third-party service logins, then disabling
 the whole screen entirely and replacing it with whatever the login methods
 are would seem to make more sense.

 Removing the reset link is fair enough to have as a filterable thing, but
 I'd probably just put a filter on the actual output of the link. That
 would let you remove it, replace it with something else, add to it with
 additional links, etc.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49860#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list