Fixed to return redirect to unauthorized page instead of hardcoded view name

This commit is contained in:
DESKTOP-GENO133\IvanPlex
2024-02-09 15:09:11 -07:00
parent a60430b4b2
commit bb64ee4012

View File

@@ -30,7 +30,7 @@ namespace CarCareTracker.Controllers
return View();
} else
{
return View("401");
return new RedirectResult("/Error/Unauthorized");
}
}
private void InitializeTables(NpgsqlConnection conn)