fix: set correct password condition
This commit is contained in:
		| @@ -211,7 +211,7 @@ public class SetupController( | |||||||
|     [BadRequestResponse] |     [BadRequestResponse] | ||||||
|     public ActionResult<string> CreateAdmin([FromBody] CreateUserRequest user) |     public ActionResult<string> CreateAdmin([FromBody] CreateUserRequest user) | ||||||
|     { |     { | ||||||
|         if (PasswordHashService.HasPasswordInPolicySecurity(user.Password)) |         if (!PasswordHashService.HasPasswordInPolicySecurity(user.Password)) | ||||||
|             throw new ControllerArgumentException("The password must be at least 8 characters long and contain at least one uppercase letter and one special character."); |             throw new ControllerArgumentException("The password must be at least 8 characters long and contain at least one uppercase letter and one special character."); | ||||||
|  |  | ||||||
|         if (!MailAddress.TryCreate(user.Email, out _)) |         if (!MailAddress.TryCreate(user.Email, out _)) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user