Flexilogin

Component ID

2859208

Component name

Flexilogin

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

Flexi login allows users to use a flexible identifier to be recognized during login. This identifier can be either their Drupal username, the e-mail associated with that username, or the phone number associated with that username. As always, the correct password or passphrase associated with the username is required to login.

Prerequisites

The default Drupal user entity already has fields for a username and user e-mail, but is missing one for a mobile phone number.

A text field with machine name field_tmobile must exist as part of the user entity. To create it with the GUI, navigate to Configuration » People » Account settings and click on the Manage fields tab. Add a new field named “tmobile” and make sure the machine name is “field_tmobile”. Set the field type to “text”. Press Save to save the new field. The module cannot be installed if this field does not exist.

Please note that having field_tmobile as a prerequisite (rather than an option) saves a lot of code that otherwise would sniff for this field and adapt on-screen text and database queries accordingly. If you don't want to use a mobile phone number to identify the user, you should not use this module. Instead, examine the modules listed under “Related modules” below, to see if one of them is suitable.

Installation

Install as you would normally install a contributed drupal module. See: Installing modules for further information.

Usage

Enabling the module will changes login processing to allow the user to identify using either a username, an e-mail address, or a phone number. Disabling the module reverts to default behavior.

Beymd this, there is no administrative interface.

Related modules

  • Amazon like login: Mirrors the functionality of Amazon Login.
  • Email registration: Allow users to register and login using only an e-mail address.
  • LoginToboggan: Allow users to login using either their username or their e-mail address and other features listed on its project page.

These modules are similar to Flexi login as they allow users to login with an e-mail address instead of, or in addition to their username. None of them allow the use of a mobile phone number as identifier. They also have a larger footprint than Flexi login.

Please note this project is incompatible with these related modules (and probably all modules that alters the login form in some way). You need to disable all other login-modules before you install Flexi login.

If you know about other modules that should be listed as related and/or incompatible, please let me know.

Limitations

The error message seen by the user when login fails is the standard Drupal error message and only mentions username (not e-mail address or phone number). I would like to change this message into one that lists all three means of user identification, but there is no API call for this. (It has been requested: Allow forms to set custom validation error messages on required fields.) However, if you really want to alter this error message, you may use String Overrides.

Bug reports, questions, reports

Post bug reports, questions and reports about related/incompatible modules to the project's issue queue.

The aim of this project is to have a simple and lightweight module with no administrative interface that allows users more flexibility when logging in. New features will not be added unless there is a really good use case for the request.

Maintainers

Project is maintained by Free Radical (Marcus Morrison).

Any help with development (patches, reviews, comments) are welcome.