• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DX Auth showing views although not logged-in

#1
[eluser]Mithun[/eluser]
Hi All,

I Have a problem with DX_Auth library, I have setup it, successfully able to log in and log out, change passwords etc, issue is with other controllers, whenever i tries to access any other controller method say <base_url>/opportunities/index.php i wss able to view it with out loggedin.
Do i need to check for log in like
Code:
if($this->dx_auth->is_logged_in())
in each controller or am I doing anything wrong?

#2
[eluser]flaky[/eluser]
Yes in each of the controllers
or you create the My_Controller or some other controller and extend the controllers that need user privileges with the My_Controller.

#3
[eluser]Mithun[/eluser]
Thank you flaky


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.