最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

blazor - error 405 on identity logout with premade code - Stack Overflow

programmeradmin3浏览0评论

I get a 405 error on this code. that was the code that came with chosing identity at project creation. The login and everything else work fine. I am connected in an account.

My menu doesn't even allow the log out option if I'm not in an account. I can't debug the code either

           ClaimsPrincipal user,
           SignInManager<ApplicationUser> signInManager,
           [FromForm] string returnUrl) =>
       {
           await signInManager.SignOutAsync();
           return TypedResults.LocalRedirect($"~/{returnUrl}");
       });
发布评论

评论列表(0)

  1. 暂无评论