You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is probably more suited to an AspNet Blazor Identity scaffolding forum, but I thought I'd try posting it here first. The logout link in /Pages/Shared/_LoginPartial.cshtml link works - clicking on it calls and hits breakpoints in the /Areas/Identity/Pages/Account/Logout.cshtml.cs class and successfully logs out the user, but the same link in the /Shared/LoginDisplay.razor component doesn't work, doesn't hit any breakpoints in the /Areas/Identity/Pages/Account/Logout.cshtml.cs class, and goes immediately to a 400 error page:
After further research, I found a hidden input at runtime in _LoginPartial.cshtml:
When I copy the hidden input and paste it into the form in LoginDisplay.razor, it works. I don't see the hidden input anywhere in the form in _LoginPartial.cshtml...how is it getting there / what is putting it there? Any idea what's going on here?
Thanks-
Brad
The text was updated successfully, but these errors were encountered:
This issue is probably more suited to an AspNet Blazor Identity scaffolding forum, but I thought I'd try posting it here first. The logout link in
/Pages/Shared/_LoginPartial.cshtml
link works - clicking on it calls and hits breakpoints in the/Areas/Identity/Pages/Account/Logout.cshtml.cs
class and successfully logs out the user, but the same link in the /Shared/LoginDisplay.razor component doesn't work, doesn't hit any breakpoints in the/Areas/Identity/Pages/Account/Logout.cshtml.cs
class, and goes immediately to a 400 error page:After further research, I found a hidden input at runtime in
_LoginPartial.cshtml
:that isn't in
LoginDisplay.razor
at runtime:<form action="/Identity/Account/Logout?returnUrl=%2F" method="post"><button class="nav-link btn btn-link" type="submit">Logout</button></form>
When I copy the hidden input and paste it into the form in
LoginDisplay.razor
, it works. I don't see the hidden input anywhere in the form in_LoginPartial.cshtml
...how is it getting there / what is putting it there? Any idea what's going on here?Thanks-
Brad
The text was updated successfully, but these errors were encountered: