first commit

This commit is contained in:
Eric Gullickson
2025-07-15 20:34:05 -05:00
commit f7eca4bad5
602 changed files with 158990 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
using Microsoft.AspNetCore.Mvc;
namespace MotoVaultPro.Controllers
{
public class ErrorController : Controller
{
public IActionResult Unauthorized()
{
if (User.IsInRole("APIAuth"))
{
Response.StatusCode = 403;
return new EmptyResult();
}
return View("401");
}
}
}