mirror of
https://github.com/LD-Reborn/Berufsschule_HAM.git
synced 2025-12-20 06:51:55 +00:00
Fixed default image not showing
This commit is contained in:
@@ -100,9 +100,9 @@ public class HomeController : Controller
|
|||||||
{
|
{
|
||||||
Task<AdminSettingsModel> adminSettingsModelTask = _ldap.GetAdminSettingsModelAsync();
|
Task<AdminSettingsModel> adminSettingsModelTask = _ldap.GetAdminSettingsModelAsync();
|
||||||
UserModel? user = await _ldap.GetUserByUidAsync(uid, _ldap.UsersAttributes);
|
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)
|
if (size is null)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user