I have been looking around the Tank auth code to see how things are done, but it seems a little confusing to find out how to change the path of the default login.
I wanted to change it to groups/login or users/sign_in, but that wasn’t an easy task. I’m wondering whether I should change that from the routing file or any other file.
Any idea how to get around with this little issue?
Yes, that’s exactly what URI Routing is for:
If you need to kill the old URL for some reason, you can set it to something empty:
Unfortunately, the Tank Auth login url is assumed to be
auth/login, and there are several redirects that must be edited. I recommend adding a custom config setting toconfig/tank_auth.php:Then replace all occurrences of
redirect('/auth/login')with:in the
Authcontroller and anywhere else it appears.