mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-23 09:14:45 +03:00
check if connect user is active
This commit is contained in:
@@ -291,6 +291,11 @@ namespace MediaBrowser.Server.Implementations.Connect
|
||||
|
||||
}, CancellationToken.None).ConfigureAwait(false);
|
||||
|
||||
if (!connectUser.IsActive)
|
||||
{
|
||||
throw new ArgumentException("The Media Browser account has been disabled.");
|
||||
}
|
||||
|
||||
var user = GetUser(userId);
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(user.ConnectUserId))
|
||||
@@ -422,7 +427,8 @@ namespace MediaBrowser.Server.Implementations.Connect
|
||||
{
|
||||
Email = response.Email,
|
||||
Id = response.Id,
|
||||
Name = response.Name
|
||||
Name = response.Name,
|
||||
IsActive = response.IsActive
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user