mirror of
https://github.com/LD-Reborn/Berufsschule_HAM.git
synced 2025-12-20 06:51:55 +00:00
Added user image and navbar elements
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user