mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-03 22:38:30 +01:00
add connect to startup wizard
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user