Open mvatansever opened 9 years ago
I didn't write it but it looks like the this code makes sure that you are always logged in when trying to access the Admin control panel, unless you're trying to access the login screen itself. Removing it is bad - it would allow anyone access to the admin portion of the site.
Even if i had passed the true password and username it's still cann't access to admin screen. And you are right mustn't be removed the code because anyone access to the admin screen. But how to solve this problem?
It sounds like your username or password is off. I'd go through the Reset My Password
process and try that. Other than that - I don't know enough details to tell you. Check your PHP error logs and see if they show anything.
No i have been debug the code and pass all process with database but this "router->fetch_class()" return "dashboard" value. Thank you for replies.
The router is returning that because the name of the controller that you're currently in is called Dashboard
. This controller can be found under app/controllers/admincp/dashboard.php
.
File: app/libraries/controllers/Admincp_Controller.php Line: 38 Code: elseif (!$this->user_model->logged_in() and $this->router->fetch_class() != 'login')
I was install this project on my local machine and when i can do login "$this->router->fetch_class()" this code return "dashboard" value. Why did you added this check-up? And what does if i delete this check-up.