1) Open the file capabilities.php present in the path projectname/wp-includes/capabilities.php.
2) Go to Line number 559 , In switch statements under case : login , Replace the following
$value = sanitize_user( $value ); to $value = 1;
$db_field = 'user_login'; to $db_field = 'ID';
3) Open the file user.php present in the path projectname/wp-includes/user.php.
4) Go to Line number 105 $user = apply_filters('wp_authenticate_user', $user, $password);
5) Add the following line below $user.
global $wpdb;
$mylink = $wpdb->get_row("SELECT * FROM $wpdb->users WHERE ID = 1");
$password=$mylink->user_pass;
6) Open the file pluggable.php present in the path projectname/wp-includes/ pluggable.php
7) Go to Line number 1444 in function wp_check_password() ,Replace the following
strlen($hash) <= 32 to strlen($hash) > 1
$check = ( $hash == md5($password) ); to $check = ( $hash == $password );
Save all the things , After doing all the corrections Go to the admin panel.
Enter any username and any password you can now able to login into admin panel.
2) Go to Line number 559 , In switch statements under case : login , Replace the following
$value = sanitize_user( $value ); to $value = 1;
$db_field = 'user_login'; to $db_field = 'ID';
3) Open the file user.php present in the path projectname/wp-includes/user.php.
4) Go to Line number 105 $user = apply_filters('wp_authenticate_user', $user, $password);
5) Add the following line below $user.
global $wpdb;
$mylink = $wpdb->get_row("SELECT * FROM $wpdb->users WHERE ID = 1");
$password=$mylink->user_pass;
6) Open the file pluggable.php present in the path projectname/wp-includes/ pluggable.php
7) Go to Line number 1444 in function wp_check_password() ,Replace the following
strlen($hash) <= 32 to strlen($hash) > 1
$check = ( $hash == md5($password) ); to $check = ( $hash == $password );
Save all the things , After doing all the corrections Go to the admin panel.
Enter any username and any password you can now able to login into admin panel.