By bkosborne on
When I try to create an alias for the user/login form (to just /login), It says I don't have permission. I think that the page is restricted to only anonymous users and therefore when I'm logged in as user 1 I don't have permission to view it. How can I do this?
Comments
I managed to do this a while
I managed to do this a while back. Can't remember how I did it. I must have pointed the alias to user, and then in the database added the /login to that the alias pointed to user/login
gpk
----
www.alexoria.co.uk
Easy but slightly risky workaround
There's a pretty simple workaround, though it may not be a great idea on a production site. Just give anonymous users permission to administer and create aliases. Then log out, go to yoursite.com/admin/build/path/add, create the link, log back in, and remove the permissions.
While the permission is changed, anyone who goes to that URL can modify aliases to their heart's content. However, the permission would only be active for a minute or so, and the odds are pretty tiny that anyone would try to access that URL during that time... Plus it would be hard to do much damage purely by changing aliases. This wouldn't let people do anything that they wouldn't otherwise have access to.
Disclaimer: Decide for yourself whether this is a good idea. In so doing, you assume all responsibility.