Closed (fixed)
Project:
First login
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 May 2012 at 02:39 UTC
Updated:
10 Aug 2012 at 14:23 UTC
The first if() in first_login_user_login():
if ($account->data['first_login']['status'] && ($account->data['first_login']['status'] != FALSE || !isset($account->data['first_login']['status'])) && isset($account->uid)) {
seems to prevent first_login_set_data() from ever being run for a new user. I suggest changing it to:
if (isset($account->uid) && (!isset($account->data['first_login']['status']) || $account->data['first_login']['status'] != FALSE)) {
Comments
Comment #1
KarinaH commentedHi Jeremy,
nice code snippet. I had the "Undefined index: first_login in first_login_user_login()..." in line 84 - which was exactly the line you suggestetd to change. I did it and it worked a charm for me.
Thanks for posting it!
Comment #2
afox commentedThanks for the report. Updated the -dev branch for D7.
Comment #2.0
afox commentedtweak layout