Fix logout, the client log store and empty name attributes
Logout: - It navigated to "authenticatio/logout", a misspelled route. - The correct template route, authentication/logout, would throw anyway. Its RemoteAuthenticatorView casts the AuthenticationStateProvider to the OIDC template's service, and the app registers TokenAuthStateProvider instead. - It now signs out through TokenAuthStateProvider.LogoutAsync, as the code commented out in the page intended, and returns home. LoginDisplay's sign-out goes through it as well. - This also drops the obsolete SignOutSessionStateManager, the build's last warning. The IndexedDB schema never declared the ClientLogs store that IStorage.AddLog writes to, so every client log write failed inside its try/catch. Version 2 adds the store, keyed by the Id AddLog assigns. DInputBase.NameAttribute renders no name instead of name="" when the form maps no field names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LsXgEaXee4GCU1hwYgPJXw
This commit is contained in:
1 parent
81b92e012b
commit
96d1db1008
10 files changed
+29
-15
No files matched your search
@@ -5,7 +5,7 @@
|
||||
enums bind by name. With Prefix (an icon or a span.label) the select class moves to a wrapping <label>. *@
|
||||
@if (Prefix is null)
|
||||
{
|
||||
<select @attributes="InputAttributes" class="@CssClassFull" name="@NameAttributeValue" value="@CurrentValueAsString"
|
||||
<select @attributes="InputAttributes" class="@CssClassFull" name="@NameAttribute" value="@CurrentValueAsString"
|
||||
@onchange="OnChange" aria-invalid="@(IsInvalid ? "true" : null)">
|
||||
@ChildContent
|
||||
</select>
|
||||
@@ -14,7 +14,7 @@ else
|
||||
{
|
||||
<label class="@CssClassFull">
|
||||
@Prefix
|
||||
<select @attributes="InputAttributes" name="@NameAttributeValue" value="@CurrentValueAsString" @onchange="OnChange"
|
||||
<select @attributes="InputAttributes" name="@NameAttribute" value="@CurrentValueAsString" @onchange="OnChange"
|
||||
aria-invalid="@(IsInvalid ? "true" : null)">
|
||||
@ChildContent
|
||||
</select>
|
||||
|
||||
Reference in new issue
Block a user