Added user image and navbar elements

This commit is contained in:
2025-11-01 22:22:41 +01:00
parent 3caa058da4
commit fe3ab8e449
5 changed files with 67 additions and 10 deletions

View File

@@ -95,6 +95,7 @@ public class HomeController : Controller
[Authorize(Roles = "CanManageUsers")]
[HttpGet("UserPhoto")]
[ResponseCache(Duration = 3600, Location = ResponseCacheLocation.Any, VaryByQueryKeys = new[] { "uid", "size" })]
public async Task<IActionResult> UserPhotoAsync(string uid, int? size)
{
UserModel? user = await _ldap.GetUserByUidAsync(uid, _ldap.UsersAttributes);