Shade- / MyFacebook-Connect

A plugin to integrate Facebook with MyBB, letting users login and register through Facebook.
27 stars 24 forks source link

member_do_register_end plugin cannot access $user_info #46

Closed moz1966 closed 7 years ago

moz1966 commented 9 years ago

In class_facebook.php, line 277 you have

$user_info = $userhandler->insert_user();

$plugins->run_hooks("member_do_register_end");

But inside plugins run from that hook, they cannot access the info in $user_info. For the normal registration process, the $user_info variable is populated with the new user info for the plugins.

Shade- commented 9 years ago

Darn you are right. That hook is useless. It has to be edited with a pass-by-reference hook, although the default one doesn't come like that. A fresh new hook might be necessary. Moving to 2.4.

Shade- commented 7 years ago

Removed in 6746f65464b7fb4e894888f29140221a0e6e89bc.