mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 07:11:10 +00:00
Adds authorization module tests
This commit is contained in:
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}");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user