When used with the Legal module, the user agreement comes in the popup opened by the HybridAuth module, after login is done in Facebook. This popup should be "exclusive" to the provider functionality, so that modules reacting to the login hook (like Legal) get their action done in the destination window, after the popup is closed.

It is not just a matter of where the agreement is showing. The navigation itself breaks, since the popup doesn't get closed after agreeing to the terms, and user stays with both windows opened.

Comments

duozersk’s picture

Assigned: Unassigned » duozersk

Tomy,

The Legal module does the illegal thing - it redirects to another page using drupal_goto() function in hook_user_login() implementation. This is a bad thing and should never be done.
http://drupalcode.org/project/legal.git/blob/refs/heads/7.x-1.x:/legal.m...

It shouldn't use this way to function, so this is most probably a Legal module bug. There is much better way around redirecting in Login Destination module - so I would recommend to rework the Legal module implementation to not use drupal_goto(). And logout should be performed after the redirection, not during the hook_user_login()...

Thanks
AndyB

duozersk’s picture

Title: Legal module compatibility » HybridAuth module compatibility
Project: HybridAuth Social Login » Legal
Version: 7.x-2.6 » 7.x-1.x-dev
Assigned: duozersk » Unassigned

Moving to Legal module issue queue.

teami’s picture

Even I have faced the same issue. When I login using any social provider, the user agreement comes in the popup opened by the HybridAuth module and it does not close itself after accepting the same. Instead it loads entire website in the same popup.

asak’s picture

Is there any available solution for this...?

I'm having the same problem with the FBOauth module...

Anonymous’s picture

Issue summary: View changes

facing similar problems when using LinkedIn through hybridauth and legal module. The pop-up doesnt go the calling function hence user remains logged in both windows also login hooks are not fired :(