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:
2026-02-19 16:03:42 -08:00
parent f1d0d43cb7
commit 15e842ce85
18 changed files with 24 additions and 5 deletions

View File

@@ -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 />