Adds authorization module tests

This commit is contained in:
BinaryAlley committed 2025-01-01 22:56:07 +02:00
1 parent 718e1c49cf
commit 0114ff13e8
125 files changed
+10411 -203

No files matched your search

@@ -31,6 +31,7 @@ public class StoreLastViewFilter : IActionFilter
if (context.Result is ViewResult)
{
HttpContext httpContext = context.HttpContext;
// ignore the login endpoint, because it is incorrect to be redirected to the login URL, with the login URL as the return URL
if (httpContext.Request.Path != "/en-us/auth/login")
httpContext.Session.SetString(HttpContextItemKeys.LAST_DISPLAYED_VIEW, $"{httpContext.Request.PathBase}{httpContext.Request.Path}{httpContext.Request.QueryString}");
}