Hi,

If you have a bit spare time, you should code a feature where the admin can set the default user role, not only the authenticated users. Thanks :)

Aries

Comments

tostinni’s picture

 function _user_authenticated_id() {
  return db_result(db_query("SELECT rid FROM {role} WHERE name = 'authenticated user'"));
}

Maybe you can change this line in user.module to add another role. Sorry I didn't take time to reply exactly to your issue, but it shouldn't be so difficult to modify this in user_configure_settings().

killes@www.drop.org’s picture

I don't see why we'd need that in core. You can easily implement this in a contrib module by implementing hook_user('insert').

greggles’s picture

Version: x.y.z » 4.7.0

There is a module that implements this now: http://drupal.org/project/rolesignup

It's not exactly as the original requestor asked, but it works well for some situations.