Compare commits
2 Commits
2c593a53a1
...
28316b58ab
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
28316b58ab | ||
|
|
26c82eca08 |
@@ -1,4 +1,3 @@
|
||||
|
||||
using Microsoft.AspNetCore.Components.Authorization;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
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();
|
||||
});
|
||||
|
||||
@@ -113,4 +115,4 @@ app.MapRazorComponents<App>()
|
||||
|
||||
app.MapAdditionalIdentityEndpoints();
|
||||
|
||||
app.Run();
|
||||
app.Run();
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user