Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Users should not be able to choose a username already used as e-mail address of another user nor an e-mail address already used as somebody else username.
Example:
1. User A registers with username "drupal" and e-mail "drupal@example.com"
2. User B registers with username "drupal@example.com" and e-mail "example@example.com"
- User A won't be able to login with it's e-mail address as user B will be loaded in
login_emailusername_user_login_validate()
- If user A tries to often to login, user B might be blocked
Comments
Comment #2
osopolarComment #3
rjjakes CreditAttribution: rjjakes commentedI think this is out of scope for this module.
If you want to limit what username the user can create (by disallowing "@" characters for example) you should probably use:
https://www.drupal.org/project/username_validation
Comment #4
rjjakes CreditAttribution: rjjakes commented