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">
|
<form method="post">
|
||||||
|
@Html.AntiForgeryToken()
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="Username">Username or Email</label>
|
<label for="Username">Username or Email</label>
|
||||||
<input type="text" id="Username" name="Username" required autofocus />
|
<input type="text" id="Username" name="Username" required autofocus />
|
||||||
|
|||||||
@@ -177,6 +177,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
<form method="post">
|
<form method="post">
|
||||||
|
@Html.AntiForgeryToken()
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="Username">Username</label>
|
<label for="Username">Username</label>
|
||||||
<input type="text" id="Username" name="Username" required autofocus minlength="3" />
|
<input type="text" id="Username" name="Username" required autofocus minlength="3" />
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -13,7 +13,7 @@ using System.Reflection;
|
|||||||
[assembly: System.Reflection.AssemblyCompanyAttribute("RR3CommunityServer")]
|
[assembly: System.Reflection.AssemblyCompanyAttribute("RR3CommunityServer")]
|
||||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+5d2c3bf8805e2cef3cc3fbfea454397430c5b3b4")]
|
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+f1d0d43cb70abf0fc44598a01a6250f3b7b73922")]
|
||||||
[assembly: System.Reflection.AssemblyProductAttribute("RR3CommunityServer")]
|
[assembly: System.Reflection.AssemblyProductAttribute("RR3CommunityServer")]
|
||||||
[assembly: System.Reflection.AssemblyTitleAttribute("RR3CommunityServer")]
|
[assembly: System.Reflection.AssemblyTitleAttribute("RR3CommunityServer")]
|
||||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
9761572ce36706cb6542ea4bba5c4906b4fd2b6b269efd23bb8f2fd856912ce5
|
42ee391f7017f761577d9436f4160570943e6c116049654eb80a0c5412651e8a
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
|||||||
{"documents":{"E:\\rr3\\RR3CommunityServer\\*":"https://raw.githubusercontent.com/ssfdre38/rr3-server/5d2c3bf8805e2cef3cc3fbfea454397430c5b3b4/*"}}
|
{"documents":{"E:\\rr3\\RR3CommunityServer\\*":"https://raw.githubusercontent.com/ssfdre38/rr3-server/f1d0d43cb70abf0fc44598a01a6250f3b7b73922/*"}}
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
BIN
RR3CommunityServer/rr3community.db-shm
Normal file
BIN
RR3CommunityServer/rr3community.db-shm
Normal file
Binary file not shown.
0
RR3CommunityServer/rr3community.db-wal
Normal file
0
RR3CommunityServer/rr3community.db-wal
Normal file
17
start-server.bat
Normal file
17
start-server.bat
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
@echo off
|
||||||
|
echo ========================================
|
||||||
|
echo Starting RR3 Community Server
|
||||||
|
echo ========================================
|
||||||
|
echo.
|
||||||
|
echo Server will start on: http://localhost:5555
|
||||||
|
echo.
|
||||||
|
echo Keep this window open while using the panel!
|
||||||
|
echo Press Ctrl+C to stop the server
|
||||||
|
echo.
|
||||||
|
echo ========================================
|
||||||
|
echo.
|
||||||
|
|
||||||
|
cd /d E:\rr3\RR3CommunityServer\RR3CommunityServer
|
||||||
|
dotnet run --urls "http://localhost:5555"
|
||||||
|
|
||||||
|
pause
|
||||||
Reference in New Issue
Block a user