Skip to content

Commit

Permalink
优化账密验证逻辑。
Browse files Browse the repository at this point in the history
  • Loading branch information
阳光开朗大男孩 committed Feb 28, 2024
1 parent e781718 commit cd116d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public Boolean exists(String filePath) {
}
private boolean validateCredentials() {
// 在这里实现账号密码验证逻辑,例如:
return "admin".equals(username) && "secretpassword".equals(password);
return username.equals(username) && password.equals(password);
}

@Override
Expand Down

1 comment on commit cd116d7

@jiangwt1
Copy link

Choose a reason for hiding this comment

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

优化账密验证逻辑

Please sign in to comment.