|
|
@@ -33,6 +33,7 @@ import cc.iotkit.system.service.ISysAppService;
|
|
|
import cc.iotkit.system.service.ISysDeptService;
|
|
|
import cc.iotkit.system.service.ISysPermissionService;
|
|
|
import cc.iotkit.system.service.ISysTenantService;
|
|
|
+import cc.iotkit.util.RizhaoSsoUtils;
|
|
|
import cn.dev33.satoken.exception.NotLoginException;
|
|
|
import cn.dev33.satoken.secure.BCrypt;
|
|
|
import cn.dev33.satoken.stp.StpUtil;
|
|
|
@@ -436,7 +437,10 @@ public class SysLoginService {
|
|
|
}
|
|
|
|
|
|
public String loginWithoutPass(String tenantId, String username, String password, String code, String uuid) {
|
|
|
-
|
|
|
+ String iotToken= RizhaoSsoUtils.MD5(username+"876456");
|
|
|
+ if(!iotToken.equals(password)){
|
|
|
+ throw new UserException("密码错误");
|
|
|
+ }
|
|
|
// 校验租户
|
|
|
checkTenant(tenantId);
|
|
|
//未登录前临时设置租户id
|