Module description:- At the time of user register, entered mobile number on user register form have to verify using OTP facility before registration.
After enter mobile number user have to click on Send OTP button to get the OTP on entered mobile number and finally enter that OTP on the user register form inside OTP field.
Module Name: Twilio OTP
core: 7.x
Dependencies: https://www.drupal.org/project/twilio
Sandbox project link: https://www.drupal.org/sandbox/rajatdkte/2826044
git clone --branch 7.x-1.x https://git.drupal.org/sandbox/rajat.dkte/2826044.git
Comment | File | Size | Author |
---|---|---|---|
#14 | twilio_otp.tar_.gz | 1.59 KB | gaurishankar |
twilio.png | 50.62 KB | gaurishankar |
Comments
Comment #2
PA robot CreditAttribution: PA robot commentedGit clone failed for http://git.drupal.org/sandbox/rajatdkte/2826044.git while invoking http://pareview.sh/pareview/httpgitdrupalorgsandboxrajatdkte2826044git
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
gaurishankarComment #4
rajveergangwarComment #5
rajveergangwarComment #6
Jabastin Arul CreditAttribution: Jabastin Arul commentedPlease review your code on "https://pareview.sh" site. We found some issue in your code. Here I have attached the link for your error code.
https://pareview.sh/node/141
Likewise, please provide the "git clone URL" in your issue queue.
Comment #7
gaurishankarComment #8
gaurishankarComment #9
gaurishankarComment #10
gaurishankarComment #11
PA robot CreditAttribution: PA robot commentedFixed the git clone URL in the issue summary for non-maintainer users.
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #12
gaurishankarFixed
Comment #13
gaurishankarComment #14
gaurishankarComment #15
Deepesh151086 CreditAttribution: Deepesh151086 commentedI have tested this module and it's working in my site... great module.
Comment #16
kawal CreditAttribution: kawal as a volunteer commentedHi,
I tested the module.
On Line 68 of the file twilio_otp.module:
if ($_SESSION['twilio_otp'] != $twilio_otp) {
This will generate an undefined index notice because $_SESSION['twilio_otp'] isn't defined/initialized at this point.
More:
1. "Send OTP" form element should use a "#limit_validation_errors" property so that clicking on it doesn't validate the whole form but mobile number.
2. There should be a way to let users know whether the OTP was sent successfully or it failed after clicking on "Send OTP". You can dynamically add a message to the form in your ajax callback.
Comment #17
rajat.dkte CreditAttribution: rajat.dkte as a volunteer and commentedHi kawal,
Please recheck issue resolved.
The more functionality we will add after some time.
Comment #18
gaurishankarComment #19
rajat.dkte CreditAttribution: rajat.dkte as a volunteer and commentedHi kawal,
I got some free time today, So added more changes.
Comment #20
vaibhavdev CreditAttribution: vaibhavdev commentedAutomated Review
Git errors:
The last commit message is just one word, you should provide a meaningful short summary what you changed. See https://www.drupal.org/node/52287
Review of the 7.x-1.x branch (commit e4640d3):
No automated test cases were found, did you consider writing Simpletests or PHPUnit tests? This is not a requirement but encouraged for professional software development.
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
1. In the function "twilio_otp_user_insert" after inserting the otp in db the SESSION variable should be unset. And the query should be made with the db to validate the OTP.
2. Provide the hook to change the message content before sending at function twilio_otp_send_otp_callback line number 60 on twillio_otp.module file.
3. Watchdog logging of error on twilio_otp_send_otp_callback in case the otp was not send or any error.
Comment #21
klausi@vaibhavdev: looks like you forgot to change the status. Is this now RTBC after your review or are there application blockers left and this should be set to "needs work"?
Comment #22
vaibhavdev CreditAttribution: vaibhavdev commentedMarking the project as needs work as per the comments of https://www.drupal.org/node/2830269#comment-11855989
Comment #23
rajat.dkte CreditAttribution: rajat.dkte as a volunteer and commentedHi vaibhavdev ,
I had made the changes.
Comment #24
rajat.dkte CreditAttribution: rajat.dkte as a volunteer and commentedComment #25
visabhishek CreditAttribution: visabhishek as a volunteer and at Azri Solutions commentedPlease do not assign ticket yourself. See the workflow https://www.drupal.org/node/532400
Comment #26
vaibhavjainHi Rajat,
Moving this to RTBC. This looks good, the code is fine, and it works as desired.
I believe, README should contain some information about this module. However, it is not mandatory though.
Comment #27
rajat.dkte CreditAttribution: rajat.dkte as a volunteer and commentedHi,
I have done three reviews:
https://www.drupal.org/node/2843486#comment-11896040
https://www.drupal.org/node/2844305#comment-11896065
https://www.drupal.org/node/2786217#comment-11896103
Comment #28
klausimanual review:
Otherwise looks god to me.
Thanks for your contribution, Rajat!
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.
Comment #29
rajat.dkte CreditAttribution: rajat.dkte as a volunteer and commentedHi klausi,
Thanks for review,
I had made changes as you told.
It is not similar to 2FA module as it will provide field on user registration not on user login page.