Hide sidebar until authenticated; wire Admin seed credentials
- MainLayout.razor: wrap shell in <AuthorizeView> so the sidebar and nav are only rendered when the user is logged in. Unauthenticated pages (login) render @Body directly, giving the login card its full viewport without the nav overlay. - deployment-admin.yaml: inject Admin__Email / Admin__Password from sor-app-secrets so the startup seed picks up production credentials. - sor-app-secrets.yaml.template: add Admin__Email / Admin__Password placeholder entries with instructions. - secrets/README.md: document the two new seed-account keys. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
@@ -1,10 +1,17 @@
|
||||
@inherits LayoutComponentBase
|
||||
|
||||
<div class="sor-admin-shell">
|
||||
<NavMenu />
|
||||
<main class="sor-admin-content">
|
||||
<div class="container-fluid py-4">
|
||||
@Body
|
||||
<AuthorizeView>
|
||||
<Authorized>
|
||||
<div class="sor-admin-shell">
|
||||
<NavMenu />
|
||||
<main class="sor-admin-content">
|
||||
<div class="container-fluid py-4">
|
||||
@Body
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</Authorized>
|
||||
<NotAuthorized>
|
||||
@Body
|
||||
</NotAuthorized>
|
||||
</AuthorizeView>
|
||||
|
||||
Reference in New Issue
Block a user