Hi,
I am trying to use CB Connect and Auto Actions to allow me to set-up a process that will only allow people to register on my site from a particular Google Apps account:
CB Connect Configuration:
Application is set and correct.
Registrations:
Register: Yes
Button Style: Disabiled
Mode: Pre-fill
Username Format: [profile_email]
Usergroups: Registered
Approval: No
Confirmation: No
Avatar Approval: Default
Canvas Approval: Default
Fields
name.givenName - firstname
name.familyName - lastname
domain - params
Now this will allow anyone with a Google account register and use the site, however now I need to restrict the access to only those with a @stuk.cloud account. I have been told the best way to do this is to use an Auto Action script, I have tried a range of different settings but can not get it to do what I need it to do here is what I currently have set:
Global
Triggers: onBeforeUserRegistration
Published: Yes
User: Automatic
Access: Everyone
Type: Redirect
Conditions
params
Does Not Contain
stuk.cloud
No
Action
URL: index.php
Message: Sorry you can not register
Type: Message
When I try to Register with or without a @stuk.cloud account I always get the message "Sorry you can not register"
Any advise would be gratefully received.
Kind Regards,
Robert