Hi,
I have taken the following code from init.php file of the GConnect plugin. Please someone can explain this code to me. I want know how this code improve security of the system.
function gconnect_add_access_exception( BASE_CLASS_EventCollector $e ) {
$e->add(array('controller' => 'GCONNECT_CTRL_Connect', 'action' => 'login'));
$e->add(array('controller' => 'GCONNECT_CTRL_Connect', 'action' => 'oauth'));
}
OW::getEventManager()->bind('base.members_only_exceptions', 'gconnect_add_access_exception');
OW::getEventManager()->bind('base.password_protected_exceptions', 'gconnect_add_access_exception');
OW::getEventManager()->bind('base.splash_screen_exceptions', 'gconnect_add_access_exception');
Thanks.