Welcome Guest, Not a member yet? Register   Sign In
Deny dirrect access to a controller...
#3

[eluser]rvent[/eluser]
Nope...

Here is one of the functions i have in the default controller:

Code:
function test()
    {
        $user = '[email protected]';
        $pass = 'my_secret';
        $out = $this->hst_ldap_auth->hst_ldap_login($user, $pass);
        
        if($out)
            redirect('/welcome', 'location');
        else
            echo 'no good';
            
    }

If user successfully logs in he is redirected from /application/controller/login.php to application/controller/control_panel.php

But i find that i am able to type http://localhost/index.php/control_panel and get to it with no problems, therefore, defying the purpose of the authentication.

What you mention it refers to whether or not a function can be called from a different class..

Any more ideas..?

Thanks


Messages In This Thread
Deny dirrect access to a controller... - by El Forum - 02-05-2009, 11:46 AM
Deny dirrect access to a controller... - by El Forum - 02-05-2009, 11:58 AM
Deny dirrect access to a controller... - by El Forum - 02-05-2009, 12:09 PM
Deny dirrect access to a controller... - by El Forum - 02-05-2009, 12:38 PM
Deny dirrect access to a controller... - by El Forum - 02-05-2009, 12:44 PM
Deny dirrect access to a controller... - by El Forum - 02-05-2009, 01:02 PM
Deny dirrect access to a controller... - by El Forum - 02-05-2009, 01:11 PM
Deny dirrect access to a controller... - by El Forum - 02-05-2009, 02:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB