Comments

sreynen’s picture

Title: Password Confirm » [D7] Password Confirm
PA robot’s picture

Status: Needs review » Needs work

There are some errors reported by automated review tools, did you already check them? See http://ventral.org/pareview/httpgitdrupalorgsandboxpranit841976520git

We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and 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.

pranit84’s picture

Status: Needs work » Needs review

Issues reported by code sniffer tool has been rectified. Now needs to be reviewed.

a.milkovsky’s picture

It appears you are working in the "master" branch in git. You should really be working in a version specific branch. The most direct documentation on this is Moving from a master branch to a version branch. For additional resources please see the documentation about release naming conventions and creating a branch in git.

Test your module at http://ventral.org/pareview/httpgitdrupalorgsandboxpranit841976520git

a.milkovsky’s picture

Status: Needs review » Needs work

please checkout to new branch and remove master branch

pranit84’s picture

Status: Needs work » Needs review

Thanks a.milkovsky for your feedback, Branch changed to 7.x-1.x from master.

a.milkovsky’s picture

Status: Needs review » Needs work

There is still a master branch at http://drupal.org/project/1976520/git-instructions
Make sure to set the correct default branch: http://drupal.org/node/1659588 . Then remove the master branch, see also step 6 and 7 in http://drupal.org/node/1127732
Review of the 7.x-1.x branch:

pranit84’s picture

Status: Needs work » Needs review

Master Branch removed.

pranit84’s picture

Issue summary: View changes

Description Modified.

pranit84’s picture

Issue summary: View changes

PAReview Added

pranit84’s picture

Issue summary: View changes

PAReview

pranit84’s picture

Issue summary: View changes

PAReview

pranit84’s picture

Issue tags: +PAreview: review bonus
pranit84’s picture

Issue summary: View changes

PAReview: review bonus

trof’s picture

Status: Needs review » Needs work

Hi pranit84.

Manual reviw:

password_confirm.module
line 14
'label' => 'Password Confirm',
need add t() function

line 139

  if ($settings['encrypt_password']) {

need insert array_key_exists() function

line 46

 if ($settings['show_password']) {

need insert array_key_exists() function

Best regards.

pranit84’s picture

Status: Needs work » Needs review

Hi trof,
Thanks for your valuable suggestions. Suggested changes has been done.
Now you can review it.

pranit84’s picture

Issue summary: View changes

Reviews of other projects

kaushalkishorejaiswal’s picture

password_confirm.module
--------------------------------------------------------------------------------
FOUND 2 ERROR(S) AFFECTING 2 LINE(S)
--------------------------------------------------------------------------------
49 | ERROR | else must start on a new line
52 | ERROR | else must start on a new line
--------------------------------------------------------------------------------

pranit84’s picture

Resolved.

eriknewby’s picture

Hey,

A minor issue, but thought I'd document it anyway.

Description:
It is not possible to disable the module after creating and deleting a password field, until cron has run.

Steps to reproduce:
1. I installed the module, created a password field on the Article content type of a Vanilla Drupal install.
2. Created an Article with a value in the password field.
3. Deleted the password field from the content type.
4. Disable the module (via drush)

Actual result:
received the following message:
"password_confirm is a required module and can't be disabled. Reason: Fields pending deletion"

Expected result:
Module disables successfully

At this point I would assume I could disable the module since I've deleted the field and there are no more dependencies. Even checking "admin/reports/fields" before cron was run, the field did not show up in the field list.

Thanks for your contributions, pranit84! Nice module.

eriknewby’s picture

Status: Needs review » Needs work

see #14

pranit84’s picture

Status: Needs work » Needs review

Hi eriknewby,
The issue that you are reporting is actually not related to my module. Infact it seems it is related to Drupal 7 core.

Check the links below:
http://drupal.org/node/1400478
http://drupal.org/node/1284358
http://drupal.org/node/1284358#comment-5026526
http://drupal.org/node/1284332#comment-5050554

I'm sharing only drupal.org links, apart from that there are several forums which is discussing this issue.
So, I don't think i need to do anything for this with my module.

and now i'm changing the state back to "needs review".

Thanks for your comments.

- Pranit

pranit84’s picture

Issue summary: View changes

Another review detail of other project added

pranit84’s picture

It's been more than 2 days, no one reviewing my Module.
How much time does it takes to approve the module and get it on drupal.org for everyone.

pranit84’s picture

Issue summary: View changes

Review of other project added.

pranit84’s picture

Issue summary: View changes

REview of other projects added.

klausi’s picture

Issue tags: -PAreview: review bonus

Removing review bonus tag, you have not done any manual review, you just posted the output of an automated review tool. Make sure to read through the source code of the other projects, as requested on the review bonus page.

I removed the automated review comments from the issue summary.

klausi’s picture

Issue summary: View changes

removed automated reviews.

pranit84’s picture

Issue summary: View changes

Adding manual Review

pagolo’s picture

Hi Pranit,
I got an issue, while testing your module.

$form['pc'] = array(
    '#type' => 'password_confirm',
    '#title' => 'Title',
    '#default_value' => 'abc',
  );

this code generates an HTTP 500 error. If I change 'password_confirm' to 'password', it works. If I remove the '#default_value' line, it works.

cheers.

pranit84’s picture

Field type password confirm doesn't supports #default_value. For detailed information read: http://api.drupal.org/api/drupal/developer%21topics%21forms_api_referenc...

pranit84’s picture

Issue summary: View changes

Adding Other projects Review link

pranit84’s picture

Issue tags: +PAreview: review bonus

PAReview added.

pranit84’s picture

Hi klausi,
I had completed the manual review of three projects. Now i assume i should get review for my module from your end.

Thanks,
-Pranit

pagolo’s picture

Pranit says:

Field type password confirm doesn't supports #default_value.

I know and I apologize, however it would be a good choice ignoring this mistake (see #password field)

pranit84’s picture

Hi pagolo,
I checked your code without my module and found the same error is coming, which means it is not related to my module. Rather it is a part of Drupal core.
- Pranit

markpavlitski’s picture

Status: Needs review » Needs work

Hi pranit84, please see some comments below:

When the 'Save Password in encrypted form' option is used (the default), there is no way of recovering the password. This could be confusing when used with the 'Show password' option, since it doesn't actually show the password but a salted, hashed version instead. Perhaps add a description on the field form or in README.txt to note this.

Since the form validates that both passwords are the same, there is no reason to store both copies of the password. Since a different salt is used, the hashed passwords can appear different but are still encrypting the same password. Without encryption, the two passwords are identical. I would suggest removing the second password field.

A couple of minor comment issues too:

password_confirm.module:9 This should be 'Implements hook_field_info().'
password_confirm.module:135: This should be 'Implements hook_field_presave().'

markpavlitski’s picture

I've just spotted this module which seems quite similar, http://drupal.org/project/password_field have you seen this one before?

pranit84’s picture

Once password is encrypted, user should not use show password, although it is up to the user's choice. I will mention this in the README.txt file. I agree with your suggestion of dropping one field from the table. And will do the changes accordingly.
I will correct the mentioned comment issues as well.

I had already seen the module, that mentioned in the #26, is not at all similar to my module. It's totally different.
In that module field of password type is created, In my module field of password_confirm type is created.
In that module password is stored in encrypted form only, In my module their is a option to save data without encryption as well.

Suppose for example, you need to create a user with the node data, In that case with help of that module the password will not help you create the user by code. But with my module it can be done.

I will try to commit the change today itself if not today then by tomorrow for sure.

pranit84’s picture

Status: Needs work » Needs review

All the required changes has been done in the code. Now i'm changing the status back to "Needs Review".

pranit84’s picture

Issue summary: View changes

Review of other project added

klausi’s picture

Assigned: Unassigned » patrickd
Status: Needs review » Reviewed & tested by the community
Issue tags: -PAreview: review bonus

manual review:

  1. Please describe the exact differences to password_field on the project page, so that users can make an educated choice between the modules.
  2. "code modified" is not a useful git commit message, see http://drupal.org//node/52287

But otherwise looks RTBC to me. Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.

Assigning to patrickd as he might have time to take a final look at this.

pranit84’s picture

Thanks klausi,
I added the difference details to the project page, under Notes section. And got your point about commit message, and will keep that in mind while doing future tasks.
I will try to add the reviews soon.

-Pranit

pranit84’s picture

Issue summary: View changes

new review added

pranit84’s picture

Issue summary: View changes

review added

pranit84’s picture

Issue summary: View changes

review added

pranit84’s picture

Issue tags: +PAreview: review bonus

Review Bonus added.

patrickd’s picture

Status: Reviewed & tested by the community » Fixed

"code modified" is not a very good commit message - for sure you modified code - that's what a commit is all about.
Use the commit messages to describe WHAT and WHY you changed it. If there's an issue for the change begin the commit message with "Issue #[number]: [text]"
. (I just saw that klausi pointed that already out)

Beside that everything looks fine to me!

Thanks for your contribution!

I updated your account to let you 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 get 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.

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

review added