brabhold/ip_login

There is no license information available for the latest version (v1.0.0) of this package.

Maintainers

Details

github.com/brabhold/ip_login

Source

Installs: 264

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 3

Type:drupal-module

v1.0.0 2019-03-25 15:13 UTC

This package is not auto-updated.

Last update: 2024-09-27 09:34:31 UTC


README

CONTENTS
--------

 * Introduction
 * Dependencies
 * Configuration
 * How the module works

INTRODUCTION
------------

The IP login module allows user to be automatically logged in based on their IP address.

DEPENDENCIES
------------

The module depends on field_ipaddress. This module contains a special IP address field that can handle IP spans in a way
that allows fast querying.

CONFIGURATION
-------------

 * Enable module
 * Create a user field of type field_ipaddress and with the field name "field_ipaddress".

HOW THE MODULE WORKS
--------------------

Doing login by IP can be tricky and may cause unwanted effects. To avoid slowing down the site by repeated login requests
and logings when access from robots, the module takes a slightly difference approach:

Login is attempted once by a javascript ajax request. Whether succesfull or not, the script will only do this once pr.
browser session. This way we take away the heavy lifting from the site. If login is succesful, the script will just reload the
current page and user is logged in.