With my website user account creation settings set to to "requires admin approval" and using the Invitation module, my invitees are able to create an account, after which they receive the standard "your account is pending admin approval." However, on the website, the accounts are listed as active. The only way I can force the website to send the initial login email with the one-time link is to block, then unblock the new accounts. Is this by design?
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | invite-enable_account-310473.patch | 1.41 KB | underq |
| #5 | 310473.patch | 770 bytes | Bevan |
Comments
Comment #1
smk-ka commentedThis looks like a bug, will have to investigate.
Comment #2
Bevan commentedJudging by the following code in
_invite_accept(), this appears to be by design;But I can't imagine why this would make sense. Possibly because the user's email address has already been confirmed, but clicking the invite email? This doesn't make sense though either, since the user may have registered using a different email address to the one the invite was sent to.
I'm happy to patch this and have time over the next few days. Please advise the best way forward.
Comment #3
Bevan commentedComment #4
Bevan commentedComment #5
Bevan commentedIn a patch file...
Comment #6
entrepreneur27 commentedHi: I need this patch, or some other way to address this bug.
However the patch seems to be meant to apply against invite.module 1.25.2.6. But the version in the alpha1 release on the project page seems to be 1.25.2.5
So, I am wondering if this is meant to be applied to the alpha1 version, or to some now outdated dev version.
I am also wondering how come there has been no action on this thread for 6 months. This seems a pretty major bug. Is the module being supported? Any tips how to get a module that does not suffer from this problem?
Help would be really appreciated from any knowledgeable drupalite.
Comment #7
YK85 commentedHello,
I was wondering if this is still an issue?
Comment #8
mlyno commented6.X-2.x-beta2 without the patch by Bevan
Accouun state "Active" emediatly after invitation acceptation. Setting "requires admin aproval" has no effect.
Comment #9
mlyno commentedpatching of invite.module failed
the bug was solved in Invite 5.x-1.6, 2007-03-12
- Fixed unblocking of new user accounts, which was not limited to invite only
mode. This broke sites where administrator approval for new user accounts is
required.
Comment #10
YK85 commentedKindly bumping.
Comment #11
Crom commentedAgreed this definitely needs looking at. I have exactly the same setup detailed by OP.
Patch at #5 works perfectly - thanks Bevan.
However, I'm not sure why this was there in the first place. It does look like this has been around for ages...since version 5...see here: http://drupal.org/node/118313
So I'm guessing that this line must do something useful ;-)
Anyway, perhaps the way forward is to change invite.module invite_process function to something like this:
Cheers,
Crom
Comment #12
underq commentedI have done a patch for resolved this issue.
Comment #13
avpadernoI am closing this issue, since it's for a Drupal version no longer supported.