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

Comments

perennial.sky’s picture

Issue summary: View changes
StatusFileSize
new594 bytes

Here is the patch.

  • akashjain132 committed 39d2abe on 7.x-1.x authored by jmsosso
    Issue #1896442 by jmsosso: Allow to select authenticated user role when...
perennial.sky’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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