Fix CSRF token issue in login and register forms
- Added @Html.AntiForgeryToken() to Register.cshtml - Added @Html.AntiForgeryToken() to Login.cshtml - Fixes 400 Bad Request errors on form submission Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -142,6 +142,7 @@
|
||||
}
|
||||
|
||||
<form method="post">
|
||||
@Html.AntiForgeryToken()
|
||||
<div class="form-group">
|
||||
<label for="Username">Username or Email</label>
|
||||
<input type="text" id="Username" name="Username" required autofocus />
|
||||
|
||||
Reference in New Issue
Block a user