InvalidUserName in asp.net CreateUser when creating a user with . character before the @ character -
I looked at the MSDN documentation and says invalidUserName is thrown when it does not find the user name in the database, which Okay because I'm creating a user should not exist in the database.
If I use test@example.com, it works, but if I try with a test. @ Example.com, the status of the membership .reiteUser is the invalid user name.
E-mail addresses come in the form username @ domain where the domain has at least two parts duration / Dot apart
The RFC specification says that a. The (part of @ before) is valid in the username of the address as long as the first or last character (username) is, so the behavior you are seeing is correct.
Looks like @ David Stratton: From your comment in Wikipedia link. ..
Character (dot, period, full stop) provided that it is not the first or last character, and it is also provided that it does not show continuously over two or more times (E.g. John .. do @ example.com).
Comments
Post a Comment