The login screen of the wp-admin area allows to initiate a password reset by klicking on ‘Lost your password?’. For security reasons, I wand to disable this feature.
In the code (wp-login.php), I discovered that there is already code for disabling this feature:
$allow = apply_filters(‘allow_password_reset’, true, $user_data->ID);
But this filter appears nowhere else in the code.
Can anybody enlighten me how disabling the password reset can be achieved in an “official manner”? (Of course, I could hack the code, but then I had to remember to reapply the patch after every update …)
Thanks in advance,
- The topic ‘How to disable password reset feature?’ is closed to new replies.