For some reason, even after searching google and here, I can't find any module that does the following:

A module that replaces the "Restricted Access" Page with a login screen for anonymous users.

Then, a module that will, after a user signs in, redirect them to the page they were on right before loging in. I find it very confusing that after logging in, it always sends you to the profile page.

In other words, say you are an anonymous user are want to look at the /admin/report page. Of course, you get restricted access.

I would like this: instead of just "Restricted Access", it gives me a box to put in my user and pass. Then, after logging in, it will redirect me to the /admin/reports, assuming that the user name I entered has that ability.... if that user can't access the admin setting anyway, THEN they get restricted access.

Hope that makes sense...

All the better if one single module can do both.

Thanks a lot!

Comments

sapark’s picture

I think but I'm not sure about this: You could create a page and enable the login block on it, restrict the block to anonymous users if needed, then make this page the 403 page at Site Configuration > Error reporting. This way when an anonymous user gets redirected to the page they see the login block, but an authenticated user does not.

For the redirect on login there is Login Destination http://drupal.org/project/login_destination. Hope that helps.

mcrittenden’s picture

Did you ever figure this out? I'm wondering the same thing.

- Mike, from Little Blue Labs and Drupal Check

clkeenan’s picture

Id also like to find this out too

esend7881’s picture

I got something working pretty well with a combination of LogintoBogin and Login Destination. Had to play with it a bit, but if an anonymous user clicks on a restricted access part of the site, they get redirected to a lot.

But if an authenticated user clicks on a restricted access part of the site, they just get an access denied error. I wish I could direct them to a different page explaining how to gain access, but I think it is obvious enough.