|
@@ -187,10 +187,16 @@ public class LoginController {
|
|
aPview.addObject("message", "帐号不存在");
|
|
aPview.addObject("message", "帐号不存在");
|
|
return aPview;
|
|
return aPview;
|
|
}
|
|
}
|
|
|
|
+ if(loginType!=null){
|
|
|
|
+ ModelAndView view = new ModelAndView("redirect:/mark-login");
|
|
|
|
+ view.addObject("message", "帐号不存在");
|
|
|
|
+ return view;
|
|
|
|
+ }
|
|
ModelAndView view = new ModelAndView(LOGIN_VIEW);
|
|
ModelAndView view = new ModelAndView(LOGIN_VIEW);
|
|
view.addObject("message", "帐号不存在");
|
|
view.addObject("message", "帐号不存在");
|
|
view.addObject("showType", showType);
|
|
view.addObject("showType", showType);
|
|
view.addObject("indexLogo", indexLogo);
|
|
view.addObject("indexLogo", indexLogo);
|
|
|
|
+ view.addObject(LOGIN_TYPE_KEY, loginType);
|
|
return view;
|
|
return view;
|
|
} else {
|
|
} else {
|
|
return new ModelAndView("redirect:/login");
|
|
return new ModelAndView("redirect:/login");
|
|
@@ -294,7 +300,14 @@ public class LoginController {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
public ModelAndView markerLogin(HttpServletRequest request, Marker marker, String password) {
|
|
public ModelAndView markerLogin(HttpServletRequest request, Marker marker, String password) {
|
|
|
|
+ StmmsSession session = RequestUtils.getSession(request);
|
|
|
|
+ String loginType = session.getParameter(LOGIN_TYPE_KEY);
|
|
ModelAndView modelAndView = new ModelAndView(LOGIN_VIEW);
|
|
ModelAndView modelAndView = new ModelAndView(LOGIN_VIEW);
|
|
|
|
+ modelAndView.addObject("indexLogo", indexLogo);
|
|
|
|
+ modelAndView.addObject("showType", "mark-login");
|
|
|
|
+ if(loginType!=null){
|
|
|
|
+ modelAndView = new ModelAndView("redirect:/mark-login");
|
|
|
|
+ }
|
|
ModelAndView modelAndViewForAP = new ModelAndView(AP_MARK_LOGIN_VIEW);
|
|
ModelAndView modelAndViewForAP = new ModelAndView(AP_MARK_LOGIN_VIEW);
|
|
if (!marker.getPassword().equals(password)) {
|
|
if (!marker.getPassword().equals(password)) {
|
|
if ("aopeng".equals(appIndex)) {
|
|
if ("aopeng".equals(appIndex)) {
|
|
@@ -302,8 +315,6 @@ public class LoginController {
|
|
return modelAndViewForAP;
|
|
return modelAndViewForAP;
|
|
}
|
|
}
|
|
modelAndView.addObject("message", "密码错误");
|
|
modelAndView.addObject("message", "密码错误");
|
|
- modelAndView.addObject("indexLogo", indexLogo);
|
|
|
|
- modelAndView.addObject("showType", "mark-login");
|
|
|
|
return modelAndView;
|
|
return modelAndView;
|
|
}
|
|
}
|
|
if (marker.isEnable() == false) {
|
|
if (marker.isEnable() == false) {
|
|
@@ -312,8 +323,6 @@ public class LoginController {
|
|
return modelAndViewForAP;
|
|
return modelAndViewForAP;
|
|
}
|
|
}
|
|
modelAndView.addObject("message", "帐号已禁用");
|
|
modelAndView.addObject("message", "帐号已禁用");
|
|
- modelAndView.addObject("indexLogo", indexLogo);
|
|
|
|
- modelAndView.addObject("showType", "mark-login");
|
|
|
|
return modelAndView;
|
|
return modelAndView;
|
|
}
|
|
}
|
|
Exam exam = examService.findById(marker.getExamId());
|
|
Exam exam = examService.findById(marker.getExamId());
|
|
@@ -328,8 +337,6 @@ public class LoginController {
|
|
return modelAndViewForAP;
|
|
return modelAndViewForAP;
|
|
}
|
|
}
|
|
modelAndView.addObject("message", "不在评卷时间范围 " + start + " " + end);
|
|
modelAndView.addObject("message", "不在评卷时间范围 " + start + " " + end);
|
|
- modelAndView.addObject("indexLogo", indexLogo);
|
|
|
|
- modelAndView.addObject("showType", "mark-login");
|
|
|
|
return modelAndView;
|
|
return modelAndView;
|
|
}
|
|
}
|
|
|
|
|