Drupal by default sends Password Reset URL by mail to user's email id in password recovery mail, but Recovery Password modules makes it possible for Drupal to send any random password by email instead of URL to the user.
Recovery Password Module alters default Drupal password reset process and makes it possible to send the new password in recovery mail itself. In this case, when user clicks on forgot password providing valid username or email address, new password is generated randomly and is sent to the user email address.
Important: As of now Recovery Password Module overrides default Drupal behaviour for password recovery and hence the previous settings will not work once the module is enabled till it is disabled again. User tokens are available in this case also.
Warning !!! Once forgot password is clicked for a user, the password gets changed for that user immediately.
Added Functionality: After Password Reset, next time the user enters with old password, a warning message saying that the password has been reset is shown to the user which is configurable and can be disabled also. While in case user enters any password other than the old one, that warning message will no more appear for that user.
Configurable options provided with this module:
1. Email Subject : Of the recovery mail to be sent.
2. Email Body: Of the recovery mail. HAS HTML MAIL SUPPORT (provided HTMLMAIL module is enabled) . ALSO SUPPORTS USER TOKENS.
3. Enable/Disable Warning Message shown to users for trying old password at login form.
4. Warning message to be shown as discussed above is itself configurable.
5. Redirect Path after Forgot Password Form/Page.
Similar Projects :
* Registration Password Token (https://www.drupal.org/project/rpt)
This module send password in the mail at the time of registration while Recovery Password Module sends new password in the mail when user clicks on forgot password.
* Simple Password Reset (https://www.drupal.org/project/simple_pass_reset)
It simplifies password reset process after user visits one time link. While Recovery password directly sends the new password in mail.
Main difference lies in the point that Recovery Password module SENDS NEW PASSWORD IN MAIL ITSELF.
Sandbox Project Link: https://www.drupal.org/sandbox/purushotam.rai/2563295
Git Clone Command
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/purushotam.rai/2563295.git recovery_password
cd recovery_password Manual reviews of other projects
* Cron Interval Actions : https://www.drupal.org/node/2563595#comment-10306333
* Extra SiteInfo: https://www.drupal.org/node/2560543#comment-10306861
* Google Plus Feeds: https://www.drupal.org/node/2498097#comment-10308205
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | Screen Shot 2015-09-10 at 8.42.12 pm.png | 53.16 KB | purushotam.rai |
| #10 | pass_rec.png | 19.03 KB | rashid_786 |
| #9 | Screen Shot 2015-09-09 at 6.07.06 pm.png | 85.57 KB | purushotam.rai |
Comments
Comment #2
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxpurushotamrai2563295git
We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #3
purushotam.rai commentedFixed PAReview's warnings.
Comment #4
purushotam.rai commentedComment #5
purushotam.rai commentedComment #6
purushotam.rai commentedComment #7
rashid_786 commentedThanks for your contribution, here are my observations:
1. There is some contradiction to have the module name as
"recovery_password"while the use case of the module to auto reset the password. I would suggest the name should be like"auto_reset_password".2. As per recommendation, .module and .info should match with module directory name.
3.
t()function should be used in, which is required for translation purpose.
4. Configure setting link should be highlighted in module listing page for the ease of new users to reach at setting page.
Comment #8
rashid_786 commentedComment #9
purushotam.rai commentedHey @rashid_786
Thanks for your valuable review. I appreciate your recommendation but this module does not work like u interpreted.
The module resets the password if and only when user submits the reset password form, so the module name cannot be changed.
Coming back to t() function ... In menu item , it is recommended not to use the t() function. https://www.drupal.org/node/323101
and for the last point i have already implemented this.... (screenshot attached.)
Comment #10
rashid_786 commented* I agree with, not to use
t()in menu hook as per the referred doc.* As per my interpretation, Module use case says, if any user wants to reset his/her password, will have to click on reset password link and redirect to reset password form, once he/she enters email address and then submit. they will get email with random password which can be used to login into the drupal site. It means, he/she doesn't need click the link to reset the password from the system (as per default functionality) instead will get auto reset password sent by your module through module. That's why i assume it should auto reset password because it doesn't recover old password.
* As per my local machine view i don't see configure link on module list ref. attachment.
Comment #11
purushotam.rai commentedDear rashid_786,
Thanx for your comment, i would definitely give a thought to the module's name under the guidance of experts and for Configuration Link in Module Listing page u need to click on dropdown button right next to Help button. (Screenshot attached)
Comment #12
purushotam.rai commentedComment #13
Pradnya Pingat commentedHi,
Automated Review
No Bug found in automation testing
Manual Review
This review uses the Project Application Review Template.
Thanks.
Comment #14
rasikap commentedWorks fine for me.
Comment #15
prateekjain commentedComment #16
purushotam.rai commentedComment #17
naveenvalechaAutomated Review
Review of the 7.x-1.x branch (commit 2ea69ab):
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
Manual Review
The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
This review uses the Project Application Review Template.
Nothing major jumps at me .Assigning to klausi to give a final look if he has time.
Comment #18
purushotam.rai commentedDear naveenvalecha,
Thanks for review. As per your recommendations, I have updated the module.
Comment #19
klausiReview of the 7.x-1.x branch (commit 233927f):
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
manual review:
I have another idea: what if you do not overwrite the user password directly but rather leave it as is and store a second password in a separate table? You send out the second password per email and alter the login form to also accept that second password. That way users can still login with their old password, but also with the new password and the account is not changed. That should mitigate the security problem of attackers overwriting your password all the time. You could expire the second password after one day if it is not used.
Still, I don't understand the use case of this module, since password reset links are just so much better. Easier to use - just click a link, more secure: no passwords that can be stolen from emails.
Anyway, you seem to understand Drupal APIs otherwise, so ...
Thanks for your contribution, purushotam.rai!
I updated your account so you can promote this to a full project and also create new projects as either a sandbox or a "full" project.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and stay involved!
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
Thanks to the dedicated reviewer(s) as well.