Title: Resetting passwords programmatically fails
Last modified: August 21, 2016

---

# Resetting passwords programmatically fails

 *  [dtulloss](https://wordpress.org/support/users/dtulloss/)
 * (@dtulloss)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/resetting-passwords-programmatically-fails/)
 * I’ve imported users into a BuddyPress/Multisite install of 3.9.1, but have a 
   problem:
 * I can change users’ passwords via the admin interface and that works fine. I 
   use MD5 to update users via phpMyAdmin and get a different hash as a result and
   users cannot log in. The Codex says that this should work. There are over 200k
   users, so manually resetting them all is not going to happen. I don’t want to
   set them to the same password because naughty people will take control of others’
   accounts.
 * It seems to me I might be missing a trigger function on wp_users or something
   like that which provides the ‘double hash’ mentioned in the Codex. Anyone know
   if that exists? Or perhaps a way to use PHP to generate the ‘double hash’ that
   the Codex speaks of?

The topic ‘Resetting passwords programmatically fails’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [dtulloss](https://wordpress.org/support/users/dtulloss/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/resetting-passwords-programmatically-fails/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
