Återställa mitt lösenord i Drupal 7 utan email.

Events happening in the community are now at Drupal community events on www.drupal.org.
akgr's picture

Jag har gjort exakt så här: http://drupal.org/node/992400
Alltså:
1. ändrat i index.php filen, valt ett nytt lösenord, fått en ny hash.
2. ändrat tillbaka index.php. Loggat in i databasen på php myadmin och under sql fliken skrivit in: UPDATE users SET pass='hashen som jag fått' where uid=1;
3. Gått till logga in sidan skrivit i användarnamnet och sen det nya lösenordet.
Men det vill ändå inte fungera! Får fortf upp "Sorry, there have been more than 5 failed login attempts for this account. It is temporarily blocked. Try again later or request a new password." på skärmen...

Vad kan det vara som jag gör fel?

Comments

Löst!

akgr's picture

Här är lösningen tackvare Johan Falk:

If you logged out and the login block is gone, you can always go to /user and find a login page.
If you are logged as non-administrator and can’t find a link to log out, you can always go to /user/logout to log out.
If you lost your password and for any reason can’t get an e-mail with a one-time login link, you can try edit your database directly. Go to the database, open the table “users” and edit the enty for user 1. In the password hash, you can paste in the following:
$S$DB.Tfr9RcoFRqp.PO4AVZGSUfJ5JmeQ9edkqHJygrLBXKvobi1j2
This is the hash for a password “root”. Once this is set, log in with the password “root” and change the password for account 1 to something else.

+1

itangalo's picture

+1 för att du postar lösningen här också! :-)
//Falkor

Sweden

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: