Download & Extend

Allow to select authenticated user role when creating a new rule

Project:Login Destination
Version:7.x-1.1
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I'm using LoginToboggan module, that allow users in database to not belong to the authenticated user role until they validate the account.

I want to be able to redirect only validated users (those with authenticated user role).

I made this little change to the login_destination.module at line 375 to allow this:

function _login_destination_role_options() {
  // user role selection, without anonymous and authentificated user roles.
  $role_options = array_map('check_plain', user_roles(TRUE));
  //unset($role_options[DRUPAL_AUTHENTICATED_RID]);  Allow authenticated user role
  return $role_options;
}

Perhaps you can include this change for the next release.

Thank you for this useful module.


Best regards,

juanmiguelsosso

Binary Factory