My problem with Drupal is that when I choose "Request new password" and submit, it sends me a email with a link
example.com/?q=user/reset/69/1376903015/wiUMZxM27RkYYAAr6zHZfqz6BH4sVMHDAfGoaeZT-Cc
I can login to account by clicking over that link. When I do the same it logged in me and redirects me to user edit page
example.com/?q=user/69/edit&pass-reset-token=-yS11phdH8HuId-5wpaKrdI6KyWOtfV098jZ5mXb_C0
Now I want to reset my password but when I click on password tab example.com/?q=user/69/password
, it ask me my account's current password. But I (may be a user) don't know current password . So How can I change password?
One point I noticed that when I put pass-reset-token on the password change URL like this
example.com/?q=user/69/password&pass-reset-token=-yS11phdH8HuId-5wpaKrdI6KyWOtfV098jZ5mXb_C0
I can reset my password without putting current password.
It means that token does not apply on the password tab link. Do I need some module or change in core user module to rectify this problem?
WHAT I DID FOR TIME BEING / TEMPORARY SOLUTION
I edited file : modules/user/user.pages.inc //on line Number 142 updated
drupal_goto('user/' . $user->uid . '/edit', array('query' => array('pass-reset-token' => $token)));
to this
drupal_goto('user/' . $user->uid . '/password', array('query' => array('pass-reset-token' => $token)));
Changed "edit" to "password"
Now my goal is complete. I know it not a good solution.
Any suggestion or answer would be appreciated.