| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import com.pollex.pam.service.util.VerifyCodeUtil; |
| | | import com.pollex.pam.business.service.util.VerifyCodeUtil; |
| | | |
| | | @RestController |
| | | @RequestMapping("/api/login/validate") |
| | | public class ConsultantLoginValidateResource { |
| | | |
| | | |
| | | @GetMapping("/get_img_code") |
| | | public void getVerifyCodeImg(HttpServletResponse response, HttpServletRequest request) { |
| | | try { |
| | |
| | | || !StringUtils.hasText(imgCode)) { |
| | | return false; |
| | | } |
| | | |
| | | |
| | | if (imgCode.equals(sessionImpCode)) { |
| | | return true; |
| | | } |
| | | |
| | | |
| | | return false; |
| | | } |
| | | } |