Radeity commented on code in PR #14577:
URL:
https://github.com/apache/dolphinscheduler/pull/14577#discussion_r1267456242
##########
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/UsersController.java:
##########
@@ -111,6 +111,10 @@ public Result createUser(@Parameter(hidden = true)
@RequestAttribute(value = Con
@RequestParam(value = "email") String email,
@RequestParam(value = "phone", required = false)
String phone,
@RequestParam(value = "state", required = false)
int state) throws Exception {
+ Result verifyRet = usersService.verifyUserName(userName);
+ if (verifyRet.getCode() != Status.SUCCESS.getCode()) {
+ return verifyRet;
+ }
Review Comment:
Get it.
--
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]