Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auth fix: init store password must be not empty #1400

Merged
merged 2 commits into from
Mar 22, 2021
Merged

Conversation

coderzc
Copy link
Member

@coderzc coderzc commented Mar 22, 2021

No description provided.

String prompt = "Please input the admin password:";
String alertMsg = "password must be not empty";
Copy link
Contributor

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;
Copy link
Contributor

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

@codecov
Copy link

codecov bot commented Mar 22, 2021

Codecov Report

Merging #1400 (8425915) into master (4c4b770) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1400      +/-   ##
============================================
- Coverage     62.05%   62.04%   -0.02%     
- Complexity     5837     5838       +1     
============================================
  Files           386      386              
  Lines         32185    32192       +7     
  Branches       4494     4495       +1     
============================================
+ Hits          19974    19975       +1     
- Misses        10178    10185       +7     
+ Partials       2033     2032       -1     
Impacted Files Coverage Δ Complexity Δ
...om/baidu/hugegraph/auth/StandardAuthenticator.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...a/com/baidu/hugegraph/backend/query/Condition.java 78.46% <0.00%> (+0.36%) 32.00% <0.00%> (ø%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4c4b770...8425915. Read the comment docs.

@coderzc coderzc merged commit ee742fa into master Mar 22, 2021
@coderzc coderzc deleted the auth-input-password branch March 22, 2021 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants