ASP.NET membership spaces in username

Posted by SaphuA on Stack Overflow See other posts from Stack Overflow or by SaphuA
Published on 2010-04-13T11:27:37Z Indexed on 2010/04/13 11:33 UTC
Read the original article Hit count: 390

Filed under:
|
|
|

Hi,

We just came across a weird bug in our application that uses the asp.net membership.

The administrator had created some users with spaces behind their name: 'My Username ' In the Users table this is saved normally, so without the spaces: 'My Username' The user can also login using the name without the spaces: 'My Username' When we use User.Identity.Name in our applicatie the result is the username WITH the spaces: 'My Username '.

Where do these spaces come from? They aren't stored in the Users table so where does he get this from?!

Thanks!

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about membership