Anti-Forgery Token was meant for a different claims-based user

前端 未结 7 1760
有刺的猬
有刺的猬 2020-12-28 13:41

I am working on a logout feature in the application we are using ASP.NET Identity login. I can login successfully but when I logout and then try to login again I get the fol

相关标签:
7条回答
  • 2020-12-28 14:31

    I didn't have the AuthenticationManager.SignOut command as Sean mentioned in my Login method. I was able to reproduce by clicking on the login button more than once before hte next View loads. I disabled the Login button after the first click to prevent the error.

    <button type="submit" onclick="this.disabled=true;this.form.submit();"/>
    
    0 讨论(0)
提交回复
热议问题