Compare commits

...

2 Commits

Author SHA1 Message Date
Ondur
28316b58ab program 2026-11-18 17:33:30 +01:00
Ondur
26c82eca08 oprava tokenu 2026-11-18 17:26:16 +01:00
3 changed files with 4 additions and 2 deletions

View File

@@ -1,4 +1,3 @@
using Microsoft.AspNetCore.Components.Authorization; using Microsoft.AspNetCore.Components.Authorization;
using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Identity;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
@@ -101,6 +100,9 @@ app.Use(async (context, next) =>
}); });
} }
// Token musí být dostupný i v aktuálním requestu
context.Items["CartToken"] = token;
await next(); await next();
}); });
@@ -113,4 +115,4 @@ app.MapRazorComponents<App>()
app.MapAdditionalIdentityEndpoints(); app.MapAdditionalIdentityEndpoints();
app.Run(); app.Run();