| Line 14... |
Line 14... |
| 14 |
import org.springframework.stereotype.Controller;
|
14 |
import org.springframework.stereotype.Controller;
|
| 15 |
import org.springframework.web.bind.annotation.RequestAttribute;
|
15 |
import org.springframework.web.bind.annotation.RequestAttribute;
|
| 16 |
import org.springframework.web.bind.annotation.RequestBody;
|
16 |
import org.springframework.web.bind.annotation.RequestBody;
|
| 17 |
import org.springframework.web.bind.annotation.RequestMapping;
|
17 |
import org.springframework.web.bind.annotation.RequestMapping;
|
| 18 |
import org.springframework.web.bind.annotation.RequestMethod;
|
18 |
import org.springframework.web.bind.annotation.RequestMethod;
|
| 19 |
import org.springframework.web.bind.annotation.RequestParam;
|
- |
|
| 20 |
|
19 |
|
| 21 |
import com.spice.profitmandi.admin.util.JWTUtil;
|
20 |
import com.spice.profitmandi.admin.util.JWTUtil;
|
| 22 |
import com.spice.profitmandi.common.model.ProfitMandiConstants;
|
21 |
import com.spice.profitmandi.common.model.ProfitMandiConstants;
|
| 23 |
import com.spice.profitmandi.common.model.UserInfo;
|
22 |
import com.spice.profitmandi.common.model.UserInfo;
|
| 24 |
import com.spice.profitmandi.common.services.Department;
|
23 |
import com.spice.profitmandi.common.services.Department;
|
| Line 35... |
Line 34... |
| 35 |
|
34 |
|
| 36 |
private static final Logger LOGGER = LoggerFactory.getLogger(AuthController.class);
|
35 |
private static final Logger LOGGER = LoggerFactory.getLogger(AuthController.class);
|
| 37 |
|
36 |
|
| 38 |
|
37 |
|
| 39 |
@Autowired
|
38 |
@Autowired
|
| 40 |
ResponseSender<?> responseSender;
|
39 |
private ResponseSender<?> responseSender;
|
| 41 |
|
- |
|
| 42 |
|
40 |
|
| 43 |
@RequestMapping(value = "/login", method = RequestMethod.POST)
|
41 |
@RequestMapping(value = "/login", method = RequestMethod.POST)
|
| 44 |
public ResponseEntity<?> login(HttpServletRequest request, @RequestBody EmailPassword emailPassword) throws Throwable {
|
42 |
public ResponseEntity<?> login(HttpServletRequest request, @RequestBody EmailPassword emailPassword) throws Throwable {
|
| 45 |
|
43 |
|
| 46 |
Map<String, Object> responseMap = new HashMap<>();
|
44 |
Map<String, Object> responseMap = new HashMap<>();
|