外卖项目day01-开发环境搭建_完善登录功能
This commit is contained in:
@@ -39,7 +39,8 @@ public class EmployeeServiceImpl implements EmployeeService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//密码比对
|
//密码比对
|
||||||
// TODO 后期需要进行md5加密,然后再进行比对
|
//后期需要进行md5加密,然后再进行比对
|
||||||
|
password = DigestUtils.md5DigestAsHex(password.getBytes());
|
||||||
if (!password.equals(employee.getPassword())) {
|
if (!password.equals(employee.getPassword())) {
|
||||||
//密码错误
|
//密码错误
|
||||||
throw new PasswordErrorException(MessageConstant.PASSWORD_ERROR);
|
throw new PasswordErrorException(MessageConstant.PASSWORD_ERROR);
|
||||||
|
|||||||
Reference in New Issue
Block a user