01-04-2021, 05:02 PM (This post was last modified: 01-04-2021, 05:53 PM by PwrSrg.)
(09-14-2020, 04:46 AM)ralphcabanero Wrote: Yes i did it already, and it is now working. Though i have a new issue on it. Whenever i logged with my username and password, the auth is not working, i have checked the database auth_login table and it was successfully logged in but upon checking on the CI dev toolbar the Auth says ¨Not logged in¨ and i cannot push through to the index page.
YES, please share with the world how you fixed this issue, as I am ALSO having the same exact issue and error.
Here are just three of the approaches I have tried, and NONE of these work:
My Filters.php file has all of the required $aliases, and I have defined the 'user' role in the auth_groups_users table, as well as have 'user' set as the $defaultUserGroup.
I have confirmed that this works, but this is NOT the way this should be done:
Code:
// My Dashboard
public function dashboard() {
if (!logged_in()) {
return redirect()->to('/login');
}
return view('games/dashboard');
}