Closed (fixed)
Project:
Role Signup
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
18 Mar 2007 at 11:41 UTC
Updated:
10 Apr 2009 at 22:36 UTC
Jump to comment: Most recent file
actually enabling both rolesignup and invite modules causes the second not to work.
when the user clicks on the invitation link received by email, the invitation code fails to work (notice logged in the watchdog: "User name registration code failed"), and following actions of invite fail too (update invites list, ad invited user to buddy list, ... ).
anyone else experiencing / needing this? would this be easy enough to fix? thank you
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | rolesignup_1.patch | 1.52 KB | Christefano-oldaccount |
| #3 | rolesignup_0.patch | 952 bytes | marcoBauli |
Comments
Comment #1
sym commentedYes, this is the case with 5 anyway. I assume 4.7 would have the same problems.
I really have no idea what to do about it. I use /user/register/[rid] for rolesignup and invite used /user/register/[invite id]. I don't think either have more of a 'right' to use that URL: they are both logical.
At the moment role signup looks for $_SESSION['role'] and checks if it is in the allowed roles list. I don't want to change this, otherwise it might be possible for someone to change the role ID and signup for an admin role.
I could make a special case for invite, but that's a slightly messy solution.
I'd welcome some ideas! I'll change the project to invite simply so they know about the problem. Please feel free to move it back to rolesignup if you think it's better there.
Comment #2
marcoBauli commentedsym, thanks for considering. moving it to invite.module then, and crossing fingers!
Comment #3
marcoBauli commenteda patch that solves the problem on 4.7 on the Role Signup side is attached here. Please review.
Comment #4
bsuttis commentedI was having the same problem with 5.1, but the patch for 4.7 above works from the limited testing I've done. I only had to make one change:
module_existhad to change tomodule_existsComment #5
botum commentedOn drupal 5 working with lots of modules, I applied the patch, changed to module_exists and also changed role_register_page() to look like below, in order to have the invitation take you, although, I'm not a programmer so I don't know if this is the best approach, but it just works!
I added:
withought this lines, it would tell me "invited users only" message.
hope it helps! finally got it to work!!!!
Comment #6
botum commentedAlso, my rolesignup_form_alter() end up being like this:
I think now it's working right.
Comment #7
Christefano-oldaccount commentedHere's a patch that includes all these changes.
Comment #8
cyberswat commentedComment #9
cyberswat commentedclosing old issues