• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Detect redirect

#1
Hello!

IonAuth controller after user login execute "return redirect()->to('/');" and if fail execute "return redirect()->back()->withInput();".

I in my controllers extends IonAuth controller and I want redirect to /dashboard, if executed "return redirect()->to('/');", and dont touch in other cases.

How I can check this redirect?


PHP Code:
public function login()
{
    
$result parent::login();
    
    
check $result ?

Reply


Messages In This Thread
Detect redirect - by XTAZ - 12-07-2019, 08:16 AM
RE: Detect redirect - by MGatner - 12-08-2019, 08:02 AM
RE: Detect redirect - by ProfessionalCoder - 12-12-2019, 02:49 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme ¬© 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.