[wp-trac] [WordPress Trac] #49860: Update to wp-login.php
WordPress Trac
noreply at wordpress.org
Thu Apr 9 14:53:23 UTC 2020
#49860: Update to wp-login.php
------------------------------------+-----------------------------
Reporter: ttodua | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Login and Registration | Version:
Severity: normal | Keywords:
Focuses: |
------------------------------------+-----------------------------
there is existing hook `allow_password_reset` which doesn't work as
intended.
For example, setting that filter to `false` still allows to output "Lost
your password" (in the bottom of login page) and even the "wp-
login.php?action=lostpassword" urls continue to work.
Many people today uses 3rd party authorizations (Google sign in, facebook,
etc etc) and want to have disabled internal registration/password reset
forms.
It will be good to have a filter to disable "Lost password" ability
completely.
However, if users are allowed to be registered on site, then it doesn't
have any meaning to have "Lost password" disabled, so, only if
"registration is disabled", after that can be checked if "Lost password"
is disabled from filter, and depending that remove the
functionality/output.
Attaching patch.
also, one important thing for styling and targeting, is that the `p` tag
had its own class.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49860>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list