.. _WP_FAIL2BAN_BLOCK_USERNAME_LOGIN: .. role:: php(code) :language: php WP_FAIL2BAN_BLOCK_USERNAME_LOGIN -------------------------------- .. rubric:: Force login with email address/prevent login with username. .. include:: default-disabled.rst.inc ---- Forces users to log in using their email address instead of their username. This provides an alternative to blocking user enumeration when using themes with author profile pages. .. code-block:: php :caption: Example: Force email login /** * Force login with email address/prevent login with username. */ define('WP_FAIL2BAN_BLOCK_USERNAME_LOGIN', true); .. include:: use-wp-config.rst.inc .. seealso:: * :ref:`WP_FAIL2BAN_BLOCK_USER_ENUMERATION` .. rubric:: History .. versionadded:: 4.3.0