I understand that because the password is saved as a blob it's not possible to grab the value and send it, however, is there a way to just reset the password then send that in a message while updating the db?
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | generate-new-password-on-recovery-request-1774492-2.patch | 498 bytes | rob c |
Comments
Comment #1
jainparidhi commentedI would like this feature too.
Comment #2
aboodred1 commentedI used this module to regenerate new password on Request new password by altering the submit function to send a new password and save it to user account. My code as follow:
Comment #3
rob c commentedI'm the maintainer for User Registration Password ( http://drupal.org/project/user_registrationpassword ) and i'm working on the exact same issue. (code)
I believe the rpt module should stay as clean as possible, i'm not even sure if we should add it to the user_registrationpassword module, maybe this could be a separate module, so more modules can use it's functionality.
For now the functionality is almost implemented in user_registrationpassword, i'll push a new release in a couple days.
The only thing that needs to change in rpt is adding an else{} in rpt_tokens() looking something like this:
This would prevent the whole situation. The user already has a password set, so we can safely assume the user already got this in a previous email. If not, they can request a new password.
For user_registrationpassword this would work very nice, because it's also core behaviour to return 'Your password' - and it should not break anything + works great with our new features + rpt integration.
Comment #4
spleshkaThanks all, commited/pushed to 7.x-1.x.