I'm not sure if this is a full-blown bug, but I think that this is fairly important so I thought I'd submit it and post a patch.
After the user successfully registers using a valid registration code, after some time goes by the site admin might decide to change the valid registration codes. When this happens, any user who tries to edit their account info will be told that they entered an "Invalid Registration Code". This is bad. First, when the user registered, they had a correct registration code so they should be good to go. Second, there isn't even a registration code input box on the edit form, so the user will be confused.
Anyway, it's an easy fix - just check for the existence of a uid before validation. A patch is attached.
-mike
| Comment | File | Size | Author |
|---|---|---|---|
| regcode_validate.patch | 611 bytes | ultimike |
Comments
Comment #1
colanThanks! Hopefully I or someone else will get a chance to review it soon.
Comment #2
Herbt commentedI added the patch to a sandbox install of the current dev and so far no problems. Will be testing it more in the next few days.
Comment #3
d------ commentedI have also tested and put the code live on some live and running installs. The patch works great... can we add it to 5.x stable release?
Comment #4
colanI'll try to get this in soon and then post a new release. Thanks!
Comment #5
Bassel commentedI hope we are close to have a new release of this module which fixes this problem.
Thanx in advance.
Comment #6
colanJust setting this back to where it should be. I'll try to get this in by the end of the year. I think I need a co-maintainer. ;) Busy, busy, busy...
Comment #7
colanMarking http://drupal.org/node/168979 as a duplicate of this ticket.
Comment #8
mlissner commentedCan somebody explain how to apply this patch? I'm having this exact problem and know nothing of patch application.
Thanks.
Comment #9
colanPlease try the new release. I just created it a few minutes ago.
Comment #10
colanSorry, I forgot the link. That new release would be 5.x-2.0.
Comment #11
mlissner commentedYou'll have to forgive my ignorance, but how does one go about using that new version you just posted? Is that a new version of the patch, or a new version of the module?
I'm sorry...I'm a bit new at this whole thing.
Comment #12
mlissner commentedScratch that last post. I just needed to install the new version. Works like a charm, thanks.
Comment #13
Bassel commentedMany thanx for the update. I have tried it and it works fine with me.
Comment #14
(not verified) commented