Welcome Guest, Not a member yet? Register   Sign In
Shield problem redirecting in hosting
#7

(06-14-2025, 02:02 AM)InsiteFX Wrote: Check your Auth.php Config file and check your redirects in it.

Also make sure the your time zone is set correct.

this is the time :

    public string $appTimezone = 'Europe/Rome';

the auth redirect is posted over:

Code:
    public function loginRedirect(): string
    {
        $session = session();
        $url    = $session->getTempdata('beforeLoginUrl') ?? setting('Auth.redirects')['login'];
       
        log_message('info', 'Auth::loginRedirect: ' . $url);

        $url = '/admin/dashboard';

        if (auth()->user() ) {

            log_message('info', 'User logged');

        }else{

            log_message('info', 'User not logged');
        }


        if (auth()->user()->can('admin.access')) {

            log_message('info', 'permission:admin.access');

            $url = '/admin/dashboard';

            return $this->getUrl($url);

        } elseif (auth()->user()->can('user.access')) {

            log_message('info', 'permission:agente.access');

            $url = '/user/dashboard';

            return $this->getUrl($url);
        }
       
        return $this->getUrl($url);
    }

but it seem doesn't work login : 

INFO - 2025-06-14 12:25:46 --> Inside login view
DEBUG - 2025-06-14 12:25:46 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.

i don't have in log User logged or user not logged
Reply


Messages In This Thread
RE: Shield problem redirecting in hosting - by pippuccio76 - 06-14-2025, 03:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB