I try to login users via ajax and I use in login form Html.AntiForgeryToken
but I get error. because I after login users via ajax post another form that it has Html.AntiForgeryToken
. I search and know that I should use Html.AntiForgeryToken
with salt
property but get me error.
How to fix this?
@Html.AntiForgeryToken(salt: "FormAjaxLogin")