Gallardot opened a new issue, #14576: URL: https://github.com/apache/dolphinscheduler/issues/14576
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened The API calls to `createUser` and `registerUser` were not validated for duplicate username. https://github.com/apache/dolphinscheduler/blob/c0d776381c20b42135e8f89ba335d7975da00522/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/UsersController.java#L106-L117 https://github.com/apache/dolphinscheduler/blob/c0d776381c20b42135e8f89ba335d7975da00522/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/UsersController.java#L565-L574 should refer to the `verifyUserName` for verification https://github.com/apache/dolphinscheduler/blob/c0d776381c20b42135e8f89ba335d7975da00522/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/UsersController.java#L494-L496 ### What you expected to happen validated for duplicate username when creating or registering a user. ### How to reproduce This is verified by repeatedly calling the API with the same parameters. ### Anything else _No response_ ### Version dev ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
