fixes #408 - Apostrophes in profile names are bad.
This commit is contained in:
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…
Reference in New Issue
Block a user