Fixed default image not showing

This commit is contained in:
2025-11-06 09:40:30 +01:00
parent 15b0c89e29
commit 7de42b34dd
+2 -2
View File
@@ -100,9 +100,9 @@ public class HomeController : Controller
{
Task<AdminSettingsModel> adminSettingsModelTask = _ldap.GetAdminSettingsModelAsync();
UserModel? user = await _ldap.GetUserByUidAsync(uid, _ldap.UsersAttributes);
if (user is null || user.JpegPhoto is null)
if (user is null || user.JpegPhoto is null || user.JpegPhoto == "")
{
return NotFound();
return File("user_default.jpeg", "image/jpeg");
}
if (size is null)
{