Closed (fixed)
Project:
Generate Password
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
26 Jun 2010 at 20:36 UTC
Updated:
12 Jan 2012 at 13:43 UTC
Jump to comment: Most recent file
Comments
Comment #1
alberto56 commentedHere is a patch that works on my test site. I created the patch by following the instructions here.
Basically, (1) I used coder to generate the basic patch, and (2) I changed the form id from "user_register" (drupal 6) to "user_register_form" (drupal 7).
Cheers,
Albert.
Comment #2
joelstein commentedThanks for the patch! I look forward to reviewing it. It's on my radar.
Comment #3
alberto56 commentedHere's an updated patch that seems to work with the new D7 beta (although I haven't completely tested every aspect of it yet).
I had to remove the submit callback reference which is harmless (and useless?) in D6 but breaks D7, as explained in #937160: form[#submit][] set to genpass_user_admin_settings_submit, but function does not exist and is not called..
Comment #4
alberto56 commentedHi,
here's a cleaner version of this patch. Note that not much is changed from D6:
- core is 7 instead of 6.
- module file is explicitly included in the info file
- the form user_register (in D6) now called user_register_form.
- removed the submit callback reference (see above)
- I also added the Drupal path in the comments next to the form IDs for easier reference, in part because these have changed since D6.
Cheers,
Albert.
Comment #5
joelstein commentedGreat work. Here's a zip for you to try out until I have time to commit it. I made several other changes (mostly better documentation).
Comment #6
danepowell commentedWorks well for me!
Comment #7
danepowell commentedCan you please commit this and make at least a dev release? I need to be able to grab this with drush_make. Thanks!
Comment #8
danepowell commentedRenaming, so I can tell this apart from all of the other d7 port issues in my queue
Comment #9
pixelsweatshop commentedsub. looking forward to a commit.
Comment #10
danepowell commentedJust FYI, I think this breaks password reset functionality. Sorry I can't provide more detail than that- I just know that users weren't able to reset their password and disabling genpass solved the problem. Still, it might be worth it to go ahead and commit this patch and open a new issue.
Comment #11
arla commentedI'm getting a notice using #5 genpass.zip:
"Notice: Undefined index: #description in genpass_form_alter() (line 143 of ...\genpass.module)."
I just added some account fields, most of them without any help text (I don't know if that's what's indicated by "#description"). I'm not sure what additional information I should provide in order for someone to recognize the bug.
Comment #12
arla commentedI've been looking through the code a little. From what I can tell, it seems like
genpass_form_alterdoesn't take the e-mail verification setting into consideration. If e-mail verification is enabled andgenpass_modeis notRESTRICTED, then the register form will throw a notice.I'm not an experienced module developer so I'm not quite sure what should be done, but I'm guessing we should check for
variable_get(user_email_verfication)ingenpass_form_alter. Or check whether_genpass_get_form_item($form, 'pass')returns anything.Hope I helped!
Comment #13
danepowell commentedCan we go ahead and commit this version as 7.x-1.x-dev, and then spin off any separate issues against that? Otherwise this thread is likely to turn into a rat's nest of issues...
Comment #14
joelstein commentedGood call. Sorry for the delay. The D7 branch has been created with the zip file from #5 (above).
http://drupal.org/node/1229106
I'll call this issue fixed. Please open up new D7 problem in separate issues as you find them.
Comment #15
danepowell commentedThanks!
Comment #17
my-family commentedThe dev version works nice, thanks. Will it be the official release (in the download table on the module page)? Thank you for this very useful module.
Comment #18
SolomonGifford commentedThe 7 version works fine -