does not deny user when attempting to login

ivo72 - May 27, 2008 - 13:41
Project:Restrict Login Access by IP Address
Version:5.x-1.0-beta4
Component:Code
Category:bug report
Priority:normal
Assigned:peligrorice
Status:needs work
Description

Once I log in as an authenticated user (no admin privelages) I get this url http://www.anzses.org/index.php?q=node/2&restricted

and the user is logged and and can view member pages

but it doesnt deny me, no matter what random IP I put in? I have set the deafult denied page in the admin section also.

#1

peligrorice - May 28, 2008 - 00:10
Assigned to:Anonymous» peligrorice

This has to do with whether or not your site uses clean url's.

If the user is not allowed to login they are re-directed using the drupal_goto function:

drupal_goto("/", "restricted");

The url is quite different depending on whether or not your site uses clean urls or not.

In the nodeapi hook this statement:

$mypath = explode("?", request_uri());

needs to be dependant on what type of system is used. If it is clean url's it needs to use the one above, if it isn't clean urls then it needs to be:
$mypath = explode("&", request_uri());

Notice the ampersand.

I will get this done soon and have it in the next release. I'll leave this active until then.

#2

peligrorice - March 25, 2009 - 02:00
Status:active» needs work
 
 

Drupal is a registered trademark of Dries Buytaert.