Welcome Guest, Not a member yet? Register   Sign In
Myth Auth LoginFilter Problem
#12

(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:
Code:
$routes->group('', ['filter' => 'login'], function($routes) {
    $routes->get('/dashboard', 'Games::dashboard');
});

Code:
$routes->get('/dashboard', 'Games::dashboard', ['filter' => 'login']);

Code:
$routes->get('/dashboard', 'Games::dashboard', ['filter' => 'role:user']);

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');
}


Any help would be appreciated.

Thanks!

Attached Files Thumbnail(s)
   

Bridging the gap between Technical and Creative

VASCOsoft Web Studio   |   AllMyLinks

Reply


Messages In This Thread
Myth Auth LoginFilter Problem - by ralphcabanero - 09-13-2020, 07:49 AM
RE: Myth Auth LoginFilter Problem - by InsiteFX - 09-13-2020, 08:19 AM
RE: Myth Auth LoginFilter Problem - by InsiteFX - 09-13-2020, 03:46 PM
RE: Myth Auth LoginFilter Problem - by raajaud - 12-01-2020, 08:10 PM
RE: Myth Auth LoginFilter Problem - by PwrSrg - 01-04-2021, 05:02 PM
RE: Myth Auth LoginFilter Problem - by InsiteFX - 09-14-2020, 08:47 AM
RE: Myth Auth LoginFilter Problem - by InsiteFX - 09-15-2020, 08:36 AM
RE: Myth Auth LoginFilter Problem - by InsiteFX - 12-02-2020, 11:06 AM
RE: Myth Auth LoginFilter Problem - by PwrSrg - 01-06-2021, 06:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB