This commit is contained in:
2022-03-09 19:04:17 +00:00
parent efcb0dd49d
commit e0c0768c31
2 changed files with 12 additions and 5 deletions

View File

@@ -494,13 +494,13 @@ namespace AyaNova
{
//if this is a generate report internal token this will be the override language set
//and it's existance is enough to indicate it was set internally by this server
var rpl=context.User.Claims.FirstOrDefault(c => c.Type == "rpl");
if ( rpl!= null)
var rpl = context.User.Claims.FirstOrDefault(c => c.Type == "rpl");
if (rpl != null)
{
//it's a local request, the jwt already passed earlier so we issued it and it has the correct claim set so allow it
bLocalReportRenderRequest = true;
//set override language
context.Request.HttpContext.Items["AY_TRANSLATION_ID"]=Convert.ToInt64(rpl.Value);
context.Request.HttpContext.Items["AY_TRANSLATION_ID"] = Convert.ToInt64(rpl.Value);
await next.Invoke();
}
}
@@ -686,8 +686,7 @@ namespace AyaNova
Console.WriteLine("Controlled shutdown: AyaNova APP -> \"Operations\" -> \"ServerState\" -> \"Shut down server\" from menu");
Console.WriteLine("Forced shutdown: Ctrl+C keyboard shortcut");
Console.WriteLine("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-");
}