外卖项目day01-开发环境搭建_完善登录功能

This commit is contained in:
xx
2026-11-14 11:03:14 +08:00
parent b1d69b68f2
commit 175b4e1230
@@ -39,7 +39,8 @@ public class EmployeeServiceImpl implements EmployeeService {
}
//密码比对
// TODO 后期需要进行md5加密,然后再进行比对
//后期需要进行md5加密,然后再进行比对
password = DigestUtils.md5DigestAsHex(password.getBytes());
if (!password.equals(employee.getPassword())) {
//密码错误
throw new PasswordErrorException(MessageConstant.PASSWORD_ERROR);