0

I forgot the admin user pass for my site. Then I followed the process to recover my password. I get an email with a link (available for 24hs) which allows me to login in my site. I go to 'user/1/edit' to create a new password, but the old one is a REQUIRED field. This is wrong, I forgot my password, then I can't fill this field.

Am I missing something here??

2
  • do you access database tables?
    – Yuseferi
    Commented Jan 30, 2015 at 15:46
  • 2
    It's simple with drush: drush upwd --password="mynewpassword" my_user Commented Jan 30, 2015 at 15:57

2 Answers 2

2

While you can change admin password either by drush or by running mysql query if you have access to database if you do not have direct access to your mysql server, install devel and wrap the mysql query with drupal query wrapper functions and run it at /devel/php page.

You may want to consider having nocurrent_password module which removes the current password field and you can directly update your passwords, NOTE: this behaviour will be same for other users as well.

3
  • It worked: drupal.org/project/nocurrent_pass thanks
    – chefnelone
    Commented Jan 30, 2015 at 17:04
  • If you have drush, you can use drush uli which generates a one time login link Commented Jan 30, 2015 at 18:38
  • login link still can be generated from Forgot Password page issue lies in the fact that drupal still asks for old password before resetting a new ome
    – arpitr
    Commented Jan 30, 2015 at 19:43
0

If you can see user/1/edit then you must be logged in, right? Log out and use the link in the email and it will ask you to reset your password. Then there should only be two fields in a non-logged in page for you to fill in.

2
  • No, I'm logout, it is the link in the email which allows me to login.
    – chefnelone
    Commented Jan 30, 2015 at 15:41
  • (Safely) disable any modules that add functionality to your login process--vanilla Drupal doesn't ask for a current password.
    – omorrill
    Commented Jan 30, 2015 at 15:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.