Hello there!
I´ve recently started to use this excellent module, and discovered that it can assign a role to the user automagically.
But it seems that it doesn´t work. I´m sure I´m the one doing something wrong here.
I´ve selected Role A in "Role for new registrants" under admin/og/reg-keys-settings
But when a new user joins, it is just a normal registered user, and won´t appear as "Role A"
Hope you guys can help me out! :)
Rosamunda

Comments

Rosamunda’s picture

Sorry, I forgot to add that:
- I´ve flushed all cache.
- It only happens with users that registers by themselves, I mean, it doesn´t happen when the user is created by the administrator.

Rosamunda’s picture

Update: No, my mistake, when the user is created by the admin it´s not added to the designated role either.
I kept trying and flushing cache, but nope. It seems the feature is not working.
Thanks for your help! This feature is a must. :)

Rosamunda

marcp’s picture

Can anyone else reproduce this? I'm pretty busy right now and won't get a chance to look at this in the next few days, so any additional pointers or patches would be appreciated. I agree that this is an important feature and should be fixed.

Have you tried reproducing this on a clean Drupal 6 site?

Rosamunda’s picture

Hi again :)
I´ve tried it in a fresh 6.10 installation, and the problem seems to be still there.
These are the steps I´ve followed:
1. Create a group and assign it an OG Key (it is a closed, private group that does not appear in the registration page nor in the groups list)
2. Set Users Setting to allow anonymous and allow access inmediately (without the email check).
3. Register as a new user and type the group key.
4. I log in inmediately and I´n just a registered user, without the special role that should be assigned.

NOTE: I´ve tried this with a group that actually appears at the registration form, with similar results.
The user is ntegrated in the desired group, but won´t get the designated role.

Hope someone can reproduce this and help me out.
Thanks!

Rosamunda

marcp’s picture

It sounds like step #2 where you allow users to enter the site without requiring e-mail verification is where things are broken. Can you confirm this? If you require e-mail verification, do you get put in the designated role?

Anonymous’s picture

Problem is the same for me. Tried it with and without e-mail verification - same result: no role assigned. Workaround maybe with the rules module, temporarily.

Rosamunda’s picture

Thanks for your answer Marc :)
I can confirm, that in my case it won´t work in any case. I´m trying to uncheck other OG modules to analize if they could somehow get to interfere with this.

marcp’s picture

Status: Active » Needs review

@Rosamunda and benraaa - Thanks for your patience on this. I committed a fix that should show up in the next 6.x-1.x-dev build. Please test it out and let me know if it fixes your problem. If it does, I'll cut an official new release.

Rosamunda’s picture

Thanks Marc!!!

marcp’s picture

Anybody get a chance to try this besides me yet?

Rosamunda’s picture

Yup!
I´ve tried it on my localhost and IT WORKED JUST FINE. Thank you very much!!!!!!
:)

marcp’s picture

Status: Needs review » Fixed

This will be in the 6.x-1.2 release.

Status: Fixed » Closed (fixed)

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