Training

Our next U.S. stop:

Mike Anello and Andrew Riley from Mediacurrent are teaming up to offer the first Blue Collar Git workshop on Friday, June 8 as part of DrupalCamp Charlotte (also part of the Southeast LinuxFest). The cost is only $149 for the full day if you register during the month of May ($199 otherwise). 

New Podcast

Posted Wednesday, May 9 at 7:50 am
Brandon Morrison (Brandonian on drupal.org) joins Andrew Riley and Mike Anello on the first post-DrupalCon Denver edition of the podcast to talk about all things Geo in Drupal 7. Brandon is one of the maintainers of the GeoField module and is an active member of the Drupal Geo community.
Download Podcast 82
DrupalEasy_ep82_20120509.mp3
Syndicate content

Newsletter

Stay up-to-date on DrupalEasy workshops and other events. On average, we send about one newsletter per month.

Testimonial

Mike is a great teacher!

Who are we?

DrupalEasy is the collective expertise of Ryan Price and Michael Anello, who joined forces to provide training and consulting services worldwide. Read all about them and what they can do.

What is Drupal?

Drupal is a free, super-powerful content management system for sites that require information posting and collection, including blogs, forums, videos, photos, and databases of information. We think it is the best platform available. Here's why...

Why Drupal?

More and more savvy organizations are going with Drupal for content management, and its no mystery why. It’s free, flexible, and easy to maintain for small or large volume sites. Learn more...

Forgotten Password - Reset it Using phpMyAdmin

When developing a Drupal site, sometimes you have the need to reset a password - either for yourself or another user. Often, when working with a copy of live data, I want to be able to login as another user who is already in the system. Rather than asking them for their password, I use this method to change it.

While Drupal's built-in "reset password" functionality or user editing capabilities work great, if you're like me and tend to work with your database editor open, there's a quick-and-dirty way to quickly change a user's password.

Using phpMyAdmin, navigate to Drupal's "user" table and navigate your way to the user record you're interested in. Click to edit the record then type in the new password in the password field.

Here's where the magic comes in - before you hit "submit", change the "function" select box to "MD5" - this will encode the plaintext password using the MD5 hash - the same one Drupal uses. If you don't perform this step, Drupal will be trying to compare a plaintext password against a hashed password - they'll never match and the password won't work.

Trackback URL for this post:

http://drupaleasy.com/trackback/194
Your rating: None Average: 2.2 (5 votes)

More Quicktips


6 comments

Guest wrote 1 day 19 hours ago

Drupal 7

For Drupal 7, execute this command from the root of your Drupal directory:

./scripts/password-hash.sh mynewpassword

... where "mynewpassword" is the new password you choose. Then you have a slated hash to put into the database either via command line or PHPmyAdmin

Guest wrote 13 weeks 5 days ago

Another tutorial that will waste people's time

Time to remove this. It's old hat and incorrect for any recent version of Drupal

ryanprice wrote 33 weeks 2 days ago

Drupal Handbook

Please see this tutorial in the handbook:
http://drupal.org/node/1023428

Guest wrote 36 weeks 5 days ago

doesn't work!

doesn't work!

ryanprice wrote 34 weeks 5 days ago

Drupal 7 has added a "salt"

Drupal 7 has added a "salt" for password hashes. You would need to add the salt to the password as well in order to recreate the hash.

It's just not that simple any longer:
http://api.drupal.org/api/drupal/includes--password.inc/7/source

Guest wrote 2 years 31 weeks ago

Password maintenance

Great tip.

Once you get used to working with the database,
it's alot easier to do user & site maintenance.

Syndicate content