How to redirect users to log in page when they try to access the order page, but not when they try to check out I'm using Checkout Login module that adds an inline login form to the account information checkout pane. No anonymous users have to activate their accounts to complete checkout or payment, which is all I want. However, after the PayPal redirects users back to my site, and users try to access the order (order history) page, the following message appears: 


  You are not authorized to access this page.


Is there a way I can re-direct users to login page when they try to access the order page, rather than the above message appearing?

In short, I want my users to be redirected to login page when they try to access order (order history) page, but not when they try to checkout.
That's one of the main features of the LoginToboggan module. 



When the Present login form on access denied (403) is enabled in its setting form, any access denied page will display a login page. Upon login, users are redirected back to the previously requested path.