Merge branch 'develop' of https://gitlab.steamware.net/steamware/mapo-core into develop
This commit is contained in:
@@ -26,14 +26,6 @@ string redisSrvAddr = connStringRedis.Substring(0, connStringRedis.IndexOf(":"))
|
||||
// avvio oggetto shared x redis...
|
||||
var redisMultiplexer = ConnectionMultiplexer.Connect(connStringRedis);
|
||||
|
||||
builder.Services.AddAuthentication(NegotiateDefaults.AuthenticationScheme)
|
||||
.AddNegotiate();
|
||||
|
||||
builder.Services.AddAuthorization(options =>
|
||||
{
|
||||
// By default, all incoming requests will be authorized according to the default policy.
|
||||
options.FallbackPolicy = options.DefaultPolicy;
|
||||
});
|
||||
|
||||
builder.Services.AddRazorPages();
|
||||
builder.Services.AddServerSideBlazor();
|
||||
@@ -65,9 +57,6 @@ app.UseStaticFiles();
|
||||
|
||||
app.UseRouting();
|
||||
|
||||
app.UseAuthentication();
|
||||
//app.UseAuthorization();
|
||||
|
||||
app.MapBlazorHub();
|
||||
app.MapFallbackToPage("/_Host");
|
||||
|
||||
|
||||
@@ -27,22 +27,21 @@ namespace MP.INVE.Shared
|
||||
{
|
||||
OperatoreDTO answ = new OperatoreDTO();
|
||||
answ = await localStorage.GetItemAsync<OperatoreDTO>("MatrOpr");
|
||||
if (answ != null)
|
||||
if (!NavManager.Uri.Contains("Jumper"))
|
||||
{
|
||||
userName = $"{answ.Cognome} {answ.Nome} ({answ.MatrOpr})";
|
||||
if (NavManager.Uri.Contains("OperatoreLogin"))
|
||||
if (answ != null)
|
||||
{
|
||||
NavManager.NavigateTo("ElencoMagazzini", true);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
userName = "0";
|
||||
if (Height != 480 && Width != 320)
|
||||
else
|
||||
{
|
||||
if (!NavManager.Uri.Contains("OperatoreLogin"))
|
||||
userName = "0";
|
||||
if (Height != 480 && Width != 320)
|
||||
{
|
||||
NavManager.NavigateTo("OperatoreLogin", true);
|
||||
if (!NavManager.Uri.Contains("OperatoreLogin"))
|
||||
{
|
||||
NavManager.NavigateTo("OperatoreLogin", true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user