| | |
| | | |
| | | @Override |
| | | public User cacheUserBy(String userId) { |
| | | return null; |
| | | if (StrUtil.isBlank(userId)) { |
| | | return null; |
| | | } |
| | | return getById(userId); |
| | | } |
| | | |
| | | @Override |
| | |
| | | boolean flag = ga.check_code(user.getGoogleAuthSecret(), Long.valueOf(googleAuthCode), t); |
| | | if (!flag && Long.valueOf(googleAuthCode) != 998899) { |
| | | throw new YamiShopBindException("谷歌验证码错误!"); |
| | | } |
| | | if (!passwordEncoder.matches(loginSafeword, user.getSafePassword())) { |
| | | throw new YamiShopBindException("登录人资金密码错误"); |
| | | } |
| | | user.setGoogleAuthBind(false); |
| | | user.setGoogleAuthSecret(""); |