Welcome Guest, Not a member yet? Register   Sign In
Admin panel problem
#4

[eluser]cideveloper[/eluser]
the constructor always runs!

Think about it like this

Somewhere you have a link to "genesis_panel/login". The user clicks the link. If the user is not logged in you redirect to "genesis_panel/login/index". The constructor still runs and thus does the check again. Bingo, it redirects to "genesis_panel/login/index" because the user is not logged in. and it will keep on going forever. A login page doesn't need access control. Anyone should be able to get to the login page. Its after that that you need access control.

Also is it just me or is your form validation saying "if I fail, let the user pass". Or is this just you testing.


Messages In This Thread
Admin panel problem - by El Forum - 06-16-2011, 06:44 PM
Admin panel problem - by El Forum - 06-16-2011, 10:14 PM
Admin panel problem - by El Forum - 06-16-2011, 11:50 PM
Admin panel problem - by El Forum - 06-16-2011, 11:50 PM
Admin panel problem - by El Forum - 06-17-2011, 01:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB