immediate login setting not honored

Coyote - November 12, 2008 - 22:58
Project:Inline Registration
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

When the site has the "immediate login" option enabled, Inline Registration is not setting status=1 on the user's account as it is created.

I made a tiny change to inline_registration_submit() as follows:

Right after:

  $merge_data = array('pass' => $pass, 'init' => $mail, 'roles' => $roles);

I added the line:

  if (!variable_get('user_email_verification', TRUE)) $merge_data['status'] = 1;

That seemed to fix it for me.

 
 

Drupal is a registered trademark of Dries Buytaert.