Commit e1ab41fe authored by wujipeng's avatar wujipeng
Browse files

优化

parent 94e6fd8a
......@@ -20,7 +20,7 @@ public class LoginController {
@PostMapping("/in")
public Result<String> loginIn(@RequestBody LoginDTO loginDTO) {
if (!loginDTO.getUsername().equals("admin") || !loginDTO.getPassword().equals("123456")) {
return Result.error(401, "用户名或密码错误");
return Result.error(401, "账号或密码错误");
}
return Result.success("登录成功");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment