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
Comment #1
duozerskTomy,
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
Comment #2
duozerskMoving to Legal module issue queue.
Comment #3
teami commentedEven 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.
Comment #4
asak commentedIs there any available solution for this...?
I'm having the same problem with the FBOauth module...
Comment #5
Anonymous (not verified) commentedfacing 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 :(