| | |
| | | * 免密常量 |
| | | */ |
| | | public static final String CUSTOM_LOGIN_SMS = "CUSTOM_LOGIN_SMS"; |
| | | public static final String CUSTOM_LOGIN_WX = "CUSTOM_LOGIN_WX"; |
| | | |
| | | @Autowired |
| | | private BladeRedis bladeRedis; |
| | |
| | | } else { |
| | | String password = authentication.getCredentials().toString(); |
| | | // 手机号登录时不验证密码 |
| | | if(!CUSTOM_LOGIN_SMS.equals(password)){ |
| | | if(!CUSTOM_LOGIN_SMS.equals(password)&&!CUSTOM_LOGIN_WX.equals(password)){ |
| | | HttpServletRequest request = WebUtil.getRequest(); |
| | | String grantType = request.getParameter(TokenUtil.GRANT_TYPE_KEY); |
| | | // 获取租户ID |