add connect to startup wizard

This commit is contained in:
Luke Pulverenti
2014-10-19 23:04:45 -04:00
parent 813f5d9649
commit 3be4aa8dc7
52 changed files with 2708 additions and 291 deletions

View File

@@ -159,7 +159,12 @@ namespace MediaBrowser.Server.Implementations.Library
throw new ArgumentNullException("username");
}
var user = Users.First(i => string.Equals(username, i.Name, StringComparison.OrdinalIgnoreCase));
var user = Users.FirstOrDefault(i => string.Equals(username, i.Name, StringComparison.OrdinalIgnoreCase));
if (user == null)
{
throw new AuthenticationException("Invalid username or password entered.");
}
if (user.Configuration.IsDisabled)
{