Login page for anonymous user

Events happening in the community are now at Drupal community events on www.drupal.org.
cithukyaw's picture

Hi,

I don't want the anonymous user to see "You are not authorized to access this page.".
But, will be redirect to login page as usual.
Any idea ?

Comments

logintoboggan

batje's picture

This module can present the login form on the access denied page:

http://drupal.org/project/logintoboggan

(and some other nice tricks, like allowing people to login with their email address)

Thanks for your advice. When

cithukyaw's picture

Thanks for your advice.

When I installed the logintoboggan module, its login block replaced my customized login page.

My problem is that
1. When visit the site as anonymous user, I see the message "You are not authorized to access this page" along with login page.
2. When I click "Logout" which link is "?q=logout", I see the same message.

What I am thinking is that how to change this message accordingly along with the default drupal login block ?

With Regards,
Sithu

front page

batje's picture

probably the anonymous user does not have access to what you have configured as the frontpage. You can change this on the page yoursite.com/admin/settings/site-information

Default 403 page

cithukyaw's picture

My site is not for anonymous user. Therefore, every visitor must login to access the site.
When I change "default 403 page" to "q=user" in Administer >> Site Configuration >> Error Reporting, I don't see the message in login page. It seems to meet my requirement, but my theme override for login block in template.php is now useless.

With Regards,
Sithu