Title: Admin Users cannot login
Last modified: June 10, 2025

---

# Admin Users cannot login

 *  [esther0708](https://wordpress.org/support/users/esther0708/)
 * (@esther0708)
 * [12 months ago](https://wordpress.org/support/topic/admin-users-cannot-login/)
 * Hi, Users that have administrator access cannot login to the backend of site.
   I have tried resetting their passwords, changing it on their behalf etc. It keeps
   saying incorrect username or password. We have cleared our cache and cookies.
   Went on Google Incognito and still comes up with this issue. We tried clicking
   lost password but no email has come through.
 * How can we fix this issue?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fadmin-users-cannot-login%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [esther0708](https://wordpress.org/support/users/esther0708/)
 * (@esther0708)
 * [12 months ago](https://wordpress.org/support/topic/admin-users-cannot-login/#post-18504818)
 * We have also deleted and readded them in. Did not work either
 *  [Faisal Ahammad](https://wordpress.org/support/users/faisalahammad/)
 * (@faisalahammad)
 * [12 months ago](https://wordpress.org/support/topic/admin-users-cannot-login/#post-18504884)
 * Hi [@esther0708](https://wordpress.org/support/users/esther0708/),
 * First, verify that the administrator accounts have the correct user roles. Access
   your site’s database via phpMyAdmin, navigate to the `wp_usermeta` table, and
   check the `wp_capabilities` entry for the affected users. Ensure the value is`
   a:1:{s:13:"administrator";b:1;}`. If it’s different, update it accordingly.
 * Next, manually reset the passwords through phpMyAdmin. In the `wp_users` table,
   locate the user, edit the `user_pass` field, enter a new password, and select`
   MD5` from the function dropdown before saving. This method is detailed in the
   WPBeginner guide on resetting a WordPress password from phpMyAdmin.
 * Should the problem persist, consider creating a new administrator account by 
   adding a function to your theme’s `functions.php` file. Insert the following 
   code:
 *     ```wp-block-code
       function add_admin_account(){
           $user = 'newadmin';
           $pass = 'StrongPassword123!';
           $email = 'admin@example.com';
           if ( !username_exists( $user ) && !email_exists( $email ) ) {
               $user_id = wp_create_user( $user, $pass, $email );
               $user = new WP_User( $user_id );
               $user->set_role( 'administrator' );
           }
       }
       add_action('init','add_admin_account');
       ```
   
 * After logging in with the new account, remember to remove this code from `functions.
   php`.
 * Give it a try, and let me know how that goes! 😄

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Admin Users cannot login’ is closed to new replies.

## Tags

 * [login](https://wordpress.org/support/topic-tag/login/)
 * [password](https://wordpress.org/support/topic-tag/password/)
 * [WordPress](https://wordpress.org/support/topic-tag/wordpress/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Faisal Ahammad](https://wordpress.org/support/users/faisalahammad/)
 * Last activity: [12 months ago](https://wordpress.org/support/topic/admin-users-cannot-login/#post-18504884)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
