mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 05:47:14 -04:00
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));
|
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;
|
var result = AuthenticateUser(new AuthenticateUser { Id = user.Id, Password = request.Password }).Result;
|
||||||
|
|
||||||
return ToOptimizedResult(result);
|
return ToOptimizedResult(result);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<packages>
|
<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.Common" version="3.9.56" targetFramework="net45" />
|
||||||
<package id="ServiceStack.Text" version="3.9.55" targetFramework="net45" />
|
<package id="ServiceStack.Text" version="3.9.55" targetFramework="net45" />
|
||||||
</packages>
|
</packages>
|
Loading…
Reference in New Issue
Block a user