Reworking the login page for #426

This commit is contained in:
tidusjar 2016-07-26 12:59:39 +01:00
parent a82fdbc3bd
commit f03392691c
5 changed files with 98 additions and 68 deletions

View file

@ -69,7 +69,18 @@ namespace PlexRequests.UI.Modules
ModulePath = settingModulePath;
Before += (ctx) => SetCookie();
Before += (ctx) =>
{
SetCookie();
if (!string.IsNullOrEmpty(ctx.Request.Session["TempMessage"] as string))
{
ctx.ViewBag.TempMessage = ctx.Request.Session["TempMessage"];
ctx.ViewBag.TempType = ctx.Request.Session["TempType"];
ctx.Request.Session.DeleteAll();
}
return null;
};
}
private int _dateTimeOffset = -1;