fixes #408 - Apostrophes in profile names are bad.

pull/702/head
Luke Pulverenti 11 years ago
parent d977ba932b
commit 9d2ed0d7f6

@ -281,6 +281,11 @@ namespace MediaBrowser.Api
{
var user = _userManager.Users.FirstOrDefault(i => string.Equals(request.Username, i.Name, StringComparison.OrdinalIgnoreCase));
if (user == null)
{
throw new ArgumentException(string.Format("User {0} not found.", request.Username));
}
var result = AuthenticateUser(new AuthenticateUser { Id = user.Id, Password = request.Password }).Result;
return ToOptimizedResult(result);

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="MediaBrowser.ApiClient.Javascript" version="3.0.153" targetFramework="net45" />
<package id="MediaBrowser.ApiClient.Javascript" version="3.0.155" targetFramework="net45" />
<package id="ServiceStack.Common" version="3.9.56" targetFramework="net45" />
<package id="ServiceStack.Text" version="3.9.55" targetFramework="net45" />
</packages>
Loading…
Cancel
Save