|
@ -97,6 +97,9 @@ public class WlyyIotLoginEndpoint {
|
|
|
|
|
|
public boolean verifyCaptcha(String key,String text){
|
|
|
boolean pass = false;
|
|
|
if(StringUtils.isEmpty(key)||StringUtils.isEmpty(text)){
|
|
|
return false;
|
|
|
}
|
|
|
String captcha = redisTemplate.opsForValue().get(key);
|
|
|
if (org.apache.commons.lang3.StringUtils.isNotBlank(captcha)&& captcha.equals(text.toLowerCase())){
|
|
|
pass = true;
|