IP login
Permalink
Hi there!
I have a client who's got a site that you have to login to. Now they want to let a school login just through the IP-address. I have no idea how to get this to work, even though I've spent a lot of time googling for the solution. (Drupal has a module for it, but that doesn't help, I mean, why should I use Drupal?)
Can anyone help me, in any way?
Cheers,
Stefan
I have a client who's got a site that you have to login to. Now they want to let a school login just through the IP-address. I have no idea how to get this to work, even though I've spent a lot of time googling for the solution. (Drupal has a module for it, but that doesn't help, I mean, why should I use Drupal?)
Can anyone help me, in any way?
Cheers,
Stefan
Just create your own custom package for this and add hook into the package's on_start method, something like this:
Hope this helps. Good luck!
Antti / Mainio
EDIT: Of course if you need wildcards etc. you need to add stuff but I think you can get the idea from the example.