diff --git a/src/Infrastructure/BotSharp.OpenAPI/Controllers/UserController.cs b/src/Infrastructure/BotSharp.OpenAPI/Controllers/UserController.cs index 8228e594..e413724b 100644 --- a/src/Infrastructure/BotSharp.OpenAPI/Controllers/UserController.cs +++ b/src/Infrastructure/BotSharp.OpenAPI/Controllers/UserController.cs @@ -95,16 +95,14 @@ public class UserController : ControllerBase return UserViewModel.FromUser(user); } - [AllowAnonymous] - [HttpPost("/user/unique/{username}")] - public async Task VerifyUserUnique([FromRoute] string userName) + [HttpGet("/user/name/existing")] + public async Task VerifyUserUnique([FromQuery] string userName) { return await _userService.VerifyUserUnique(userName); } - [AllowAnonymous] - [HttpPost("/email/unique/{email}")] - public async Task VerifyEmailUnique([FromRoute]string email) + [HttpGet("/user/email/existing")] + public async Task VerifyEmailUnique([FromQuery] string email) { return await _userService.VerifyEmailUnique(email); }