| | |
| | | * @throws VciBaseException 登录发生异常的时候出现了错误 |
| | | */ |
| | | @Override |
| | | public LoginResultBO login(LoginUserDTO userDTO, RequestClientInfo clientInfo) throws PLException { |
| | | public LoginResultBO login(LoginUserDTO userDTO, RequestClientInfo clientInfo) throws Exception { |
| | | return login(userDTO,clientInfo,true); |
| | | } |
| | | |
| | |
| | | * @return 执行结果 |
| | | * @throws VciBaseException 参数错误,用户不能登录等会抛出异常 |
| | | */ |
| | | private LoginResultBO login(LoginUserDTO userDTO, RequestClientInfo clientInfo, boolean checkPassword/*单点登录不需要校验密码*/) throws VciBaseException { |
| | | private LoginResultBO login(LoginUserDTO userDTO, RequestClientInfo clientInfo, boolean checkPassword/*单点登录不需要校验密码*/) throws Exception { |
| | | LoginResultBO loginResult = new LoginResultBO(); |
| | | loginResult.setSuccess(false); |
| | | |
| | |
| | | } |
| | | //6、登录成功之后需要处理的逻辑 |
| | | user.setLastLoginTime(new Date());//最后登录时间 |
| | | user.setPwdWrongCount(0);//密码错误次数清0 |
| | | //user.setPwdWrongCount(0);//登录成功密码错误次数清0 |
| | | platformClientUtil.getFrameworkService().updateLogonInfo(user.getOid(),true); |
| | | //处理用户登录成功的session |
| | | SessionInfo sessionInfo = new SessionInfo(); |
| | | sessionInfo.setToken(token); |
| | |
| | | * @throws VciBaseException 登录失败的时候抛出异常 |
| | | */ |
| | | @Override |
| | | public LoginResultBO singleLogin(LoginUserDTO userDTO, RequestClientInfo clientInfo) throws PLException { |
| | | public LoginResultBO singleLogin(LoginUserDTO userDTO, RequestClientInfo clientInfo) throws Exception { |
| | | return login(userDTO,clientInfo,false); |
| | | } |
| | | |