1 帆软报表默认的登录是调用com.fr.web.controller.decision.api.auth.LoginResource中的login方法,如下:
@RequestMapping(
value = {"/login"},
method = {RequestMethod.POST}
)
@ResponseBody
@DeviceBinding(
autoBindFirstDevice = true
)
public Response login(HttpServletRequest req, HttpServletResponse res, @RequestBody LoginRequestInfoBean loginRequestInfoBean) throws Exception {
try {
LoginResponseInfoBean responseInfoBean = LoginService.getInstance().login(req, res, loginRequestInfoBean);
EventDispatcher.fire(LogInOutEvent.LOGIN, new LogInOutResultInfo(req, res, loginRequestInfoBean.getUsername(), true));
return Response.ok(responseInfoBean);
} catch (Exception var5) {
EventDispatcher.fire(LogInOutEvent.LOGIN, new LogInOutResultInfo(req, res, loginRequestInfoBean.getUsername(), false));
throw var5;



