| | |
| | | return ResponseUtil.error(ResponseStatusEnums.BAD_CREDENTIALS.getCode(), ResponseStatusEnums.BAD_CREDENTIALS.getMessage()); |
| | | } |
| | | String s = RedisUtils.getBean().get(loginParam.getKey()); |
| | | System.out.println(s+"==========================="); |
| | | System.out.println(s + "==========================="); |
| | | if (!loginParam.getVlue().equals(s)) { |
| | | return ResponseUtil.error(ResponseStatusEnums.BAD_AUTHENTICATION.getCode(), ResponseStatusEnums.BAD_AUTHENTICATION.getMessage()); |
| | | } |
| | |
| | | Browser browser = userAgent.getBrowser(); |
| | | OperatingSystem os = userAgent.getOperatingSystem(); |
| | | String content = "用户ID:" + client.getId() |
| | | + "用户名:" + client.getClientName() |
| | | + "用户类型:管理员" |
| | | + " 登录IP地址:" + IPUtils.getPublicIp() |
| | | + ",用户名:" + client.getClientName() |
| | | + ",用户类型:管理员" |
| | | + ",登录IP地址:" + IPUtils.getPublicIp() |
| | | + ",操作系统:" + os |
| | | + ",浏览器:" + browser; |
| | | StoreOperationRecordsUtils.storeOperationData(null, null, "用户登录", content); |
| | | StoreOperationRecordsUtils.storeOperationLoginData(client.getId(), client.getClientName(), "用户登录", content); |
| | | return ResponseUtil.success(authInfo); |
| | | } |
| | | } |