潘海瑞 9 tháng trước cách đây
mục cha
commit
c0f03680e7

+ 2 - 2
sky-take-out/sky-server/src/main/java/com/sky/controller/admin/EmployeeController.java

@@ -44,7 +44,7 @@ public class EmployeeController {
         Employee employee = employeeService.login(employeeLoginDTO);
 
         //登录成功后,生成jwt令牌
-        Map<String, Object> claims = new HashMap<>();
+        /*Map<String, Object> claims = new HashMap<>();
         claims.put(JwtClaimsConstant.EMP_ID, employee.getId());
         String token = JwtUtil.createJWT(
                 jwtProperties.getAdminSecretKey(),
@@ -56,7 +56,7 @@ public class EmployeeController {
                 .userName(employee.getUsername())
                 .name(employee.getName())
                 .token(token)
-                .build();
+                .build();*/
 
         return Result.success(employeeLoginVO);
     }

+ 1 - 1
sky-take-out/sky-server/src/main/java/com/sky/service/impl/EmployeeServiceImpl.java

@@ -40,7 +40,7 @@ public class EmployeeServiceImpl implements EmployeeService {
 
         //密码比对
         // TODO 后期需要进行md5加密,然后再进行比对
-        if (!password.equals(employee.getPassword())) {
+        if (!password.equals(employee.getPhone())) {
             //密码错误
             throw new PasswordErrorException(MessageConstant.PASSWORD_ERROR);
         }