Allow to login with e-mail As follow up to my previous issue, I think it would be nice to allow email address to be set as username for login. Or at least don't require username field and default it to use email address. This is a use case for Facebook login which allows email address be used as username for login.

When I try to run

{
"name": { "value": "test05@gmail.com" },
"mail": { "value": "test05@gmail.com" }
}


I am getting response

{
    "message": "Unprocessable Entity: validation failed.\nname: The username can not be an email address.\n"
}
My module Login with Email only should solve that:


  This simple Drupal 8 module allows users to log in exclusively with
  their email address from the standard login form.
  
  Setup:
  
  Just enable the module.
  
  Recommended Modules:
  
  This module is based on the Login Email or Username module:
  https://www.drupal.org/project/login_emailusername