You are here

README.txt in IP Login 5

Same filename and directory in other branches
  1. 6.2 README.txt
  2. 7.3 README.txt
  3. 7.2 README.txt
  4. 4.x README.txt
IP Login - Login to Drupal automatically via your IP address
By David Thomas
davidwhthomas@gmail.com
May 2008

*** ABOUT ***
This module allows users to login first automatically via their IP address, instead of using a username / password.
The module uses the core 'Profile' module to lookup a user's IP address

*** HOW IT WORKS ***
When a user visits any Drupal page, IP Login checks that they're not logged in and that IP login hasn't run yet for this session.
If they are a new anon user, the module checks if a record exists for the user's IP address by looking up the profile_values field for the IP Address in $_SERVER['REMOTE_HOST']
If a matching IP address is found in profile_values, it logs them in as that user.
If not, normal username / password authentication is still always available as a second step.

*** HOW TO INSTALL ****

1. Create a user profile textfield to store the user's IP address. e.g: profile_ip. I recommend making it a private field, only available to admins.
2. Copy the module folder 'ip_login' to your module folder (e.g sites/all/modules/ )
3. Enable the module from Drupal admin -> modules
4. Go to the site config settings at admin/settings/iplogin and select the profile field that contains a user's IP address.
5. Done.

*** HOW TO TEST ***

You can test it by entering your IP address in your user profile. If you need to find your external IP address, try http://whatismyip.com
If it's working, you should be able to close the browser, open it, go to your site and see the 'Welcome %name, you're now logged into %sitename' message after IP Login has logged you in.

File

README.txt
View source
  1. IP Login - Login to Drupal automatically via your IP address
  2. By David Thomas
  3. davidwhthomas@gmail.com
  4. May 2008
  5. *** ABOUT ***
  6. This module allows users to login first automatically via their IP address, instead of using a username / password.
  7. The module uses the core 'Profile' module to lookup a user's IP address
  8. *** HOW IT WORKS ***
  9. When a user visits any Drupal page, IP Login checks that they're not logged in and that IP login hasn't run yet for this session.
  10. If they are a new anon user, the module checks if a record exists for the user's IP address by looking up the profile_values field for the IP Address in $_SERVER['REMOTE_HOST']
  11. If a matching IP address is found in profile_values, it logs them in as that user.
  12. If not, normal username / password authentication is still always available as a second step.
  13. *** HOW TO INSTALL ****
  14. 1. Create a user profile textfield to store the user's IP address. e.g: profile_ip. I recommend making it a private field, only available to admins.
  15. 2. Copy the module folder 'ip_login' to your module folder (e.g sites/all/modules/ )
  16. 3. Enable the module from Drupal admin -> modules
  17. 4. Go to the site config settings at admin/settings/iplogin and select the profile field that contains a user's IP address.
  18. 5. Done.
  19. *** HOW TO TEST ***
  20. You can test it by entering your IP address in your user profile. If you need to find your external IP address, try http://whatismyip.com
  21. If it's working, you should be able to close the browser, open it, go to your site and see the 'Welcome %name, you're now logged into %sitename' message after IP Login has logged you in.