Fixed to return redirect to unauthorized page instead of hardcoded view name
This commit is contained in:
@@ -30,7 +30,7 @@ namespace CarCareTracker.Controllers
|
||||
return View();
|
||||
} else
|
||||
{
|
||||
return View("401");
|
||||
return new RedirectResult("/Error/Unauthorized");
|
||||
}
|
||||
}
|
||||
private void InitializeTables(NpgsqlConnection conn)
|
||||
|
||||
Reference in New Issue
Block a user