Redirect after login? #1024
Replies: 5 comments 10 replies
-
Events? |
Beta Was this translation helpful? Give feedback.
-
Yes, but that event should only trigger if it has been a redirect from |
Beta Was this translation helpful? Give feedback.
-
Yes, just call So your code would look like (also you should use the if (!BackendAuth::getUser()) {
Redirect::setIntendedUrl('/docadmin');
return Backend::redirect('backend/auth/signin')->with('message', 'Login Failed');
} The last step of the login process calls |
Beta Was this translation helpful? Give feedback.
-
Hallo Luke. Hope you are well. I have added the above to the
So, it seems to always redirects to I should perhaps note that |
Beta Was this translation helpful? Give feedback.
-
Interesting....
I would have excepted |
Beta Was this translation helpful? Give feedback.
-
In a plugin, I am checking if a user is logged in as backend user using
and then redirect to the backend login page. Is there a way to send him to a specific url, say
/docadmin
automatically after the user has logged into the backend from that plugin (if the user logs into the backend directly, I would like to still log the person into the backend dashboard)?Beta Was this translation helpful? Give feedback.
All reactions