Kentico - Using punctuation with AuthenticateUser

Posted by Big Friendly Giant on Stack Overflow See other posts from Stack Overflow or by Big Friendly Giant
Published on 2014-06-09T08:56:23Z Indexed on 2014/06/10 3:26 UTC
Read the original article Hit count: 231

Filed under:
|
|

We are currently using version 7.0 of the kentico API to authenticate users into our system.

The following code is used to gain user details from the database and authenticate users.

UserInfo objUserInfo = AuthenticationHelper.AuthenticateUser(username.ToLower(), password.ToLower(), CMSContext.CurrentSiteName);

This has primarily been working correctly, but we are having issues with usernames and passwords that contain any of the following characters.

" ! @ ' / \ > < * -

Is there any settings that I need to be aware of (web.config or otherwise) that would stop the API from accessing an account where a username or password contained special characters?

© Stack Overflow or respective owner

Related posts about c#

Related posts about asp.net-mvc