We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a75c075 commit a427bc1Copy full SHA for a427bc1
Intersect.Server/Web/RestApi/Routes/V1/UserController.cs
@@ -99,6 +99,11 @@ public IActionResult RegisterUser([FromBody] UserInfoRequestBody user)
99
return BadRequest($@"Invalid username '{user.Username}'.");
100
}
101
102
+ if (!Regex.IsMatch(user.Password?.ToUpperInvariant()?.Trim(), "^[0-9A-Fa-f]{64}$", RegexOptions.Compiled))
103
+ {
104
+ return BadRequest(@"Did not receive a valid password.");
105
+ }
106
+
107
if (Database.PlayerData.User.UserExists(user.Username))
108
{
109
return BadRequest($@"Account already exists with username '{user.Username}'.");
0 commit comments