thomas4135
thomas4135

When I'm signed out of the backend and login via the User plugin login form. Of which i have overidden the partial, so i just request the onSignin function from the plugin. I try and login and i get redirected to the backend login page. when I'm signed in the backend, as it would, it works perfectly... any ideas?

eddyloewen
eddyloewen

I just encountered the same problem - any solutions so far?

thomas4135
thomas4135

Yes I did manage to work it out sorry I didn't post the answer sooner.

Ok so the reason the this was happening for me is when the Login PLUGIN returned false ( incorrect login ) it redirected me to the last place my sign in was rejected which was the backend, this is relative to the browser cache so it will only happen to people with backend access. (so don't worry about your clients ) that means somewhere along the line you have either put in incorrect details or logged out the backend. Therefore it redirects you to the backend login form... which is a bother but can be fixed by either:

  • going into the plugin code (rainlab/user/components/Account.php: onSignin() ) and manually setting the redirect at the end to wherever you want it to.

  • or just clearing your browser cache and making sure you don't put in incorrect details.

Hope that helps :)

Last updated

eddyloewen
eddyloewen

Thanks! That helps.

But it's still a bug/problem with octobercms - I would say that the cms should never redirect from the frontend to the backend...

mjauvin

1-5 of 5