Hi all,
I am using legal module ad I have just set up the option of logging with facebook (module fboauth).
So I am not sure where to report the issue, let me try here.

I am allowing my users to create an account on my website using facebook.
This means that the user clicks in login page on "Facebook connect" and he/she is redirected on Facebook website and autheticted over there.
When the facebook user is not yet connected with a Drupal user, Drupal creates the user, so it is actually creating a user without showing the register page (and the legal module with its checkbox).

So, when inserting the user I receive a:
Notice: Undefined index: legal_accept in legal_user_insert() (line 441 /sites/all/modules/legal/legal.module).

the error is here:
$accepted = $edit['legal_accept'];

'legal_accept' does not exist.
In my case, users needs to be approved by administrator before login, so at their first login, they are asked to accept the legal form. In my case, I just need change the line I reported before as follows:
if(isset($edit['legal_accept'])) {
$accepted = $edit['legal_accept'];
} else {
$accepted = NULL;
}
(previous code is not yet testd, be careful).
But I am aware this is NOT a good solution.

Hope this helps.

Comments

d0t15t’s picture

Same here. i am also using the Complete Profile module which forces the user to complete some profile fields before their account is activated, but it doesn't help with forcing the legal confirmation...

khandra’s picture

I would like to notify that in version 7.x-1.4 this issue is solved.

Andre-B’s picture

Status: Active » Closed (fixed)