diff --git a/src/Models/GroupModel.cs b/src/Models/GroupModel.cs index 389349a..f327718 100644 --- a/src/Models/GroupModel.cs +++ b/src/Models/GroupModel.cs @@ -21,6 +21,7 @@ public class GroupModel string? descriptionValue = ldapData.GetValueOrDefault("description"); if (descriptionValue is null) { + DisplayName = Cn; Permissions = []; } else diff --git a/src/Services/MigrationService.cs b/src/Services/MigrationService.cs index ecef3fc..d68f242 100644 --- a/src/Services/MigrationService.cs +++ b/src/Services/MigrationService.cs @@ -23,7 +23,10 @@ public class MigrationService : IHostedService await MigrateAsync(); } - public async Task StopAsync(CancellationToken cancellationToken) { } + public async Task StopAsync(CancellationToken cancellationToken) + { + await Task.CompletedTask; + } public async Task MigrateAsync() { diff --git a/src/Views/Home/Users.cshtml b/src/Views/Home/Users.cshtml index c74f6c7..3e5a255 100644 --- a/src/Views/Home/Users.cshtml +++ b/src/Views/Home/Users.cshtml @@ -758,6 +758,7 @@ // Photo const imgEl = row.querySelector('td:first-child img'); const detailPhoto = document.getElementById('detailPhoto'); + detailPhoto.src = ''; detailPhoto.src = `/Home/UserPhoto?uid=${data.uid}&size=256`; detailModal.show(); });