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.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();
});