WordPress.org

Forums

More friendly - password page (5 posts)

  1. giddykipper
    Member
    Posted 5 years ago #

    On the password page - with the note and the box - can I add an additional note and an email address where the passwords can be requested? Which file needs fiddling with?
    All help genuinely appreciated

  2. s_ha_dum
    Member
    Posted 5 years ago #

    The register_form hook can add a message to that login screen. For example:

    function privacy_notice(){
    	echo '<div id="registration-privacy-notice">
    		<p>
    I promise not to sell your email address. I might, however, rent it. :)
                    </p>
    	</div>';
    }
    add_action('register_form','privacy_notice');

    As far as the password goes, you can't recover a user's password. Its hashed. You'd have to crack it just like an attacker would. You can, as an administrator, reset the password though and send that to your users. Users can also request a new password via already built in functions though.

  3. giddykipper
    Member
    Posted 5 years ago #

    Thanks apljdi. I don't want anyone's password, just to get rid of the sticky post that tells them who to email for passwords and replace it with wording on the login page.
    Your answer is thorough but for a newb like me -
    where exactly should the 'function ...' etc be pasted?
    AHGR - thanks again

  4. giddykipper
    Member
    Posted 5 years ago #

    Clarification -
    I'm talking about the interim page that pops up when clicking on a password protected page with the password box in it, not any other login page?
    Hope this helps ...

  5. s_ha_dum
    Member
    Posted 5 years ago #

    For most user-level tweaks pasting into your theme's functions.php file is fine. That function isn't going to help you with that password page. That should be in your theme in comments.php, hopefully.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.