auth fix: init store password must be not empty by coderzc · Pull Request #1400 · apache/hugegraph

@coderzc

@coderzc

javeme

private String inputPassword() {
String password = "";
String prompt = "Please input the admin password:";
String alertMsg = "password must be not empty";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

String prompt => inputPrompt
String alertMsg => String notEmptyPrompt
improve message "The admin password can't be empty"

System.out.println(alertMsg);
}
} while (password.isEmpty());
return password;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move to line 84, and define password on line 73

@coderzc

javeme

Linary

@codecov

@coderzc coderzc deleted the auth-input-password branch

March 22, 2021 10:54