Hi there,

I would really like to be able to set "New user registration by invitation only" setting, but also require administrative approval. Does anyone have any idea how I might go about this in the module?

Thanks

Comments

Thomas_Zahreddin’s picture

hm, you could combine with logintoboggan module:

create a role pre-authenticated user and use this role fore invited users, then aprove the invited users with this role.
(and it's up to you which rights you give to pre-authenticated - this is a role between anonymous and authenticated)

tajindersingh’s picture

Just in case anyone else reaches this page in search for mentioned feature. There is a hook_invite available in this module. That can be used as below to Keep invited registrations blocked resulting in Admin approval in both direct and invitation registrations.

// hook_invite implementation to undone account activation on registration by invitation by Invite module
function mymodule_invite($op, $args) {
  switch ($op) {
    case 'escalate':
      db_query("UPDATE {users} SET status = 0 WHERE uid = %d", $args['invitee']->uid);
    break;
  }
}

Tajinder Singh
IMP Technologies
Creating Masterpieces...
http://imptechs.com

ami7878’s picture

Thanks for this helpful tip TajinderSingh. You saved my day :)