Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Redirecting to custom sign-in page when accessing restricted pages

Hi all, I've extended the sign-in / sign-up on our main website to communicate with Vanilla so users only need to go through the main website.

However, when some restricted pages in Vanilla are accessed the call to $this->Permission('Garden.SignIn.Allow'); redirects the user to the /entry/signin page. This page isn't used by our app any more, so i'm wondering how to override the Gdn_Controller::Permission method so that it redirects to our custom sign-in page, not the Vanilla one.

Only option I can think of is by using htaccess to redirect. But is there a another (better) way?

Best Answer


Sign In or Register to comment.