Fix max login attempts

This commit is contained in:
theguymadmax
2026-07-08 23:07:57 -04:00
parent 53aafcd38e
commit 8b826d981b

View File

@@ -631,6 +631,7 @@ namespace Jellyfin.Server.Implementations.Users
if (maxInvalidLogins.HasValue && user.InvalidLoginAttemptCount >= maxInvalidLogins)
{
user.SetPermission(PermissionKind.IsDisabled, true);
dbContext.Update(user);
await dbContext.SaveChangesAsync()
.ConfigureAwait(false);
await _eventManager.PublishAsync(new UserLockedOutEventArgs(user)).ConfigureAwait(false);