USERNAME_MAX_LENGTH
constant USERNAME_MAX_LENGTH
Maximum length of username text field.
Keep this under 191 characters so we can use a unique constraint in MySQL.
File
- core/modules/user/user.module, line 32
- Enables the user registration and login system.
Code
const USERNAME_MAX_LENGTH = 60;
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!user!user.module/constant/USERNAME_MAX_LENGTH/8.1.x