Remove client-side Blazor script and normalize session IP display #20
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/admin-static-ssr-banner"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What does this PR do?
Two fixes from Hannah''s first live session on the admin UI (found within minutes of go-live, which is exactly what first live sessions are for):
blazor.web.jsscript tag andReconnectModalcomponent shipped inApp.razoreven though every admin page is static SSR with plain HTML form posts and Program.cs registers no interactive render mode. The script''s startup failure toggled Blazor''s "An unhandled error has occurred - Reload" banner on the anonymous pages (login, change-password) while the flows themselves worked fine server-side. The app now ships zero client-side script; the orphaned reconnect modal files and the never-triggerable error banner div are deleted. Bonus hardening: with no inline import map, the CSP''sscript-srcdrops'unsafe-inline'and is now just'self'.::ffff:192.168.0.x), and the session row stored that raw form, which the /account active-sessions list displayed verbatim. Addresses are normalized to their IPv4 form at session creation and in the rate-limiter partition key. IP-binding comparisons already normalized both sides, so no behavioral change - this is stored-data and display honesty.How was this tested?
dotnet build- 0 errors, 0 warningsdotnet test- 301 passed, 9 skipped (live-PostgreSQL integration tests)Checklist
1721aeb15bto8a9ad5ad4b