Enhanced Your WordPress Authentication


Sponsored Links






How To Enhancer Your WordPress authentication and added better handled and criteria. John Kolbert, one of WordPress developer create some tutorial how to do it. On this tutorial John Kolbert try to added same parameter and made own criteria…

WordPress Authentication - Miranda Kerr Black Leather

WordPress Authentication - Miranda Kerr Black Leather

John using add_filter method to create it. He tweak original function of wp_authenticate. On this example John add new parameter that will denied username bob.

First, Create custom function on functions.php and add_filter wp_authenticate with new function has created

add_filter( 'authenticate', 'my_custom_function', 10, 3 );
function my_custom_error_shake( $shake_codes ){
    $shake_codes[] = 'denied';
    return $shake_codes;
}

function my_custom_function( $user, $username, $password ){
    $user = get_userdatabylogin( $username );  //we don't really need this, but you might
    if( $username == 'bob'  ) {  //if the username is bob
        $user = new WP_Error( 'denied', __("<strong>ERROR</strong>: We do not allow people with the name Bob into this site") );
        remove_action('authenticate', 'wp_authenticate_username_password', 20);
        add_filter('shake_error_codes', 'my_custom_error_shake');	//make the login box shake
     }
     return $user;
}

That’s it’s, you can test it on your own WordPress and try to logging with username bob. Please note, you can replace bob with your own desire name. If you need more details about this tutorial you can leave comment on John Kolbert Tutorial

Subscribe to Full RSS Feed

RSS FeedIf you thing this article useful, please consider subscribing to our RSS Feed or e-mail updates and stay updated with us. You can also follow @WPTricksNet on twitter for latest updates.

About WP Tricks

We are WordPress Family, we collected and writed useful tips and tricks for you WordPress. We share it for you...

Related Tips and Trick from Local Data and on The Net

How To Add Author’s Twitter and Facebook Info

Using WordPress, we can added new field to our author info more easily. Example we want to add Author’s Twitter and Facebook on the Author Profile. We only needed to added extra function and added to the WordPress Author Profile … Read More

How To Change The Default “admin” Username

Like we all know, before WordPress 3.0 released, the standard account for Admin username is admin, there are so many WordPress was hacked because of this username. Started with WordPress 3.0 new method of installation. Now each WordPress installer ab

Create User-Friendly WordPress Shortcodes

WP Hardcore give nicely tutorial about how to Create User-Friendly WordPress Shortcodes. On the WP Hardcore example how to create better gallery shortcode and make it more user friendly. You'll need little bit knowledge in PHP, because on thi

How to Display a Dynamics Date Copyright

Have you ever seen, some time website has Copyright on the footer? Example on WordPress Tricks Copyright © 2010 - WordPress Tricks & Tips is proudly powered by WordPress, On this tutorial I will show you How to Create and … Read More

markup enabled codes - WordPress Tricks & Tips

Enhanced Your WordPress Authentication How To Enhancer Your WordPress authentication and added better handled and read more

Source: http://wptricks.net/archives/markup-enabled-codes

teletech oracle password reset - WordPress Tricks & Tips

Enhanced Your WordPress Authentication How To Enhancer Your WordPress authentication and added better handled and read more

Source: http://www.wptricks.net/archives/teletech-oracle-password-reset/

Beef Up WordPress Security with Multifactor Authentication from

Here’s what the enhanced login box will look like with is it time to think about multifactor authentication as a standard for WordPress sites? What’s your opinion? read more

Source: http://wpmu.org/beef-up-wordpress-security-with-multifactor-authentication-from-google/

WordPress › yubikey-plugin « WordPress Plugins

Enhanced Login Security for Your WordPress blog. Download Version 0.94 The plugin uses the Yubico Web service API in the authentication process. read more

Source: http://wordpress.org/extend/plugins/yubikey-plugin/

20 Wordpress Plugins To Make Your Wordpress Secure | Arfandia

security-enhanced file permissions on both. You can change the settings whenever you want right from your WordPress get that authentication Hide your wordpress read more

Source: http://www.arfandia.com/wordpress/20-wordpress-plugins-to-make-your-wordpress-secure.html


2 Responses to Enhanced Your WordPress Authentication

  1. raiderhost says:

    nice tips pakde ,,,

    mantab di kasih di single ternyata :D

  2. Pingback: Extra Validation on WordPress Login : Seize the Chocolate

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>