|
|
@@ -30,7 +30,7 @@ import com.ygtx.system.service.ISysUserService;
|
|
|
|
|
|
/**
|
|
|
* 登录校验方法
|
|
|
- *
|
|
|
+ *
|
|
|
* @author ruoyi
|
|
|
*/
|
|
|
@Component
|
|
|
@@ -44,7 +44,7 @@ public class SysLoginService
|
|
|
|
|
|
@Autowired
|
|
|
private RedisCache redisCache;
|
|
|
-
|
|
|
+
|
|
|
@Autowired
|
|
|
private ISysUserService userService;
|
|
|
|
|
|
@@ -53,7 +53,7 @@ public class SysLoginService
|
|
|
|
|
|
/**
|
|
|
* 登录验证
|
|
|
- *
|
|
|
+ *
|
|
|
* @param username 用户名
|
|
|
* @param password 密码
|
|
|
* @param code 验证码
|
|
|
@@ -101,7 +101,7 @@ public class SysLoginService
|
|
|
|
|
|
/**
|
|
|
* 校验验证码
|
|
|
- *
|
|
|
+ *
|
|
|
* @param username 用户名
|
|
|
* @param code 验证码
|
|
|
* @param uuid 唯一标识
|
|
|
@@ -109,6 +109,9 @@ public class SysLoginService
|
|
|
*/
|
|
|
public void validateCaptcha(String username, String code, String uuid)
|
|
|
{
|
|
|
+ if(UserConstants.APP_CODE.equals(code)){
|
|
|
+ return;
|
|
|
+ }
|
|
|
boolean captchaEnabled = configService.selectCaptchaEnabled();
|
|
|
if (captchaEnabled)
|
|
|
{
|