Welcome Guest, Not a member yet? Register   Sign In
Hook - Community Auth
#3

LOGIN_PAGE is defined in the auth_constants hook, and it's a pre_system hook. In config/config you should set enable_hooks to TRUE.

There is no magic here. Either auth_constants hook runs because it's set up correctly or not.

Note installation step 5:
5) Copy auth_constants.php and auth_sess_check.php from community_auth/hooks to CodeIgniter's application/hooks directory.

If these files are in your application/hooks directory, you've enabled hooks in config/config, and put the following in config/hooks.php, then it should work:

Code:
$hook['pre_system'] = array(
    'function' => 'auth_constants',
    'filename' => 'auth_constants.php',
    'filepath' => 'hooks'
);
$hook['post_system'] = array(
    'function' => 'auth_sess_check',
    'filename' => 'auth_sess_check.php',
    'filepath' => 'hooks'
);
Reply


Messages In This Thread
Hook - Community Auth - by harkor - 07-20-2016, 09:38 AM
RE: Hook - Community Auth - by harkor - 07-20-2016, 11:55 AM
RE: Hook - Community Auth - by skunkbad - 07-20-2016, 12:06 PM
RE: Hook - Community Auth - by easymusic - 08-15-2016, 12:43 AM
RE: Hook - Community Auth - by skunkbad - 08-15-2016, 07:04 AM
RE: Hook - Community Auth - by easymusic - 08-15-2016, 12:19 PM



Theme © iAndrew 2016 - Forum software by © MyBB