Welcome Guest, Not a member yet? Register   Sign In
Myth:Auth redirecting does not work
#1
Sad 

hi i installed myth:auth library . every thing works but when i go to login page after i successfully logged in it should redirec me to the root uri and not showing the login form ?
is it a bug or it is something that i have to implement , some times it works sometimes it does not !!!
Reply
#2

[quote pid="389194" dateline="1628427049"]
use filter to redirect to anothor ctl

https://codeigniter4.github.io/userguide...lters.html
[/quote]
Enlightenment  Is  Freedom
Reply
#3

you can force redirect at AuthController.php

look at => function attemptLogin()
Reply
#4

For any of the Auth systems out there you should use a filter to redirect to another controller.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#5

(08-08-2021, 10:55 AM)paliz Wrote: [quote pid="389194" dateline="1628427049"]
use filter to redirect to anothor ctl

https://codeigniter4.github.io/userguide...lters.html

[/quote]

i just want to know if this is normal or should i make it by my self
Reply
#6

(08-08-2021, 12:40 PM)ikesela Wrote: you can force redirect at AuthController.php

look at => function attemptLogin()

so that is normal right
Reply
#7

(08-09-2021, 12:53 AM)InsiteFX Wrote: For any of the Auth systems out there you should use a filter to redirect to another controller.

oh i see beacuse i thought the auth will do it automatically
Reply
#8

It will go back to the page that called it like home.

Or use a named route and route_to
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB