Problem/Motivation

In my use case, after a user registers, their user data is sent via an event to another application. We use Logintoboggan to set an "unverified user" role that is needed by the event consumer. However, when logintoboggan modifies the $form_state variable, it does not set the validating role's name.

Proposed resolution

In logintoboggan_user_register_submit, logintoboggan set the role name to "1". We should retrieve the role name and set it to that. Right now, I can use the role ID, but I want to avoid that as the ID can change across different installations of Drupal.

I've attached a patch that makes this change.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kmorozov created an issue. See original summary.

kmorozov’s picture

kmorozov’s picture

kmorozov’s picture

Issue summary: View changes
kmorozov’s picture

FileSize
897 bytes