Access denied to login page

Access denied to login page

by Wonton Sopabuena -
Number of replies: 1

Hello everyone!

I have a web with Drupal, Amember and Moodle. The Moodle login is controlled from Drupal and Amember, so I don't need to use the Moodle login page.

I could leave it there, but for some reasons related to URL parameters I manage and some customizations, if an user writes in the URL "mysite.com/moodle/login/index.php" and logs in, I get warnings and errors. The user must log with Drupal and Amember only.

So my question is:

Is there any way to deny the access to users (except Administer) to moodle/login/index.php page?

Thank you very much!

Wonton.

Average of ratings: -
In reply to Wonton Sopabuena

Re: Access denied to login page

by Wonton Sopabuena -

Sorry for answer myself, but I was thinking about this and I think my question might be a bit stupid. If I denied the login page for guest users I won't ever be able to login as Admin, because when I enter in the login page I would be guest and I would get the access denied message.

Then, is there any way to hide this page?