Make WordPress Core

Opened 21 months ago

Last modified 20 months ago

#38744 new defect (bug)

Can't login with email address that contains an apostrophe

Reported by: wpkuf Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.6.1
Component: Login and Registration Keywords: needs-testing
Focuses: Cc:


  • Test case :
  1. Create a user with email address that contains an apostrophe. For example you can create this user from the Dashboard. Example : testemailaddress'@…
  2. Try to login submitting this email address and valid password on /wp-login.php page.

Expected result

User is logged in

Actual result

User isn't logged in. Error invalid_username

If WordPress allows to create user with such email, then it should also allow to login with it. It seems to be correct.

So the question is to allow to login with similar emails or restrict them at all.

Change History (3)

#1 @wpkuf
21 months ago

  • Component changed from General to Login and Registration

#2 @wpkuf
21 months ago

  • Keywords needs-testing added
Note: See TracTickets for help on using tickets.