|
|
|
|
@ -11,7 +11,7 @@ import com.xxl.sso.core.helper.XxlSsoHelper;
|
|
|
|
|
import com.xxl.sso.core.model.LoginInfo;
|
|
|
|
|
import com.xxl.tool.core.CollectionTool;
|
|
|
|
|
import com.xxl.tool.core.StringTool;
|
|
|
|
|
import com.xxl.tool.encrypt.SHA256Tool;
|
|
|
|
|
import com.xxl.tool.crypto.Sha256Tool;
|
|
|
|
|
import com.xxl.tool.response.PageModel;
|
|
|
|
|
import com.xxl.tool.response.Response;
|
|
|
|
|
import jakarta.annotation.Resource;
|
|
|
|
|
@ -98,7 +98,7 @@ public class JobUserController {
|
|
|
|
|
return Response.ofFail(I18nUtil.getString("system_lengh_limit")+"[4-20]" );
|
|
|
|
|
}
|
|
|
|
|
// md5 password
|
|
|
|
|
String passwordHash = SHA256Tool.sha256(xxlJobUser.getPassword());
|
|
|
|
|
String passwordHash = Sha256Tool.sha256(xxlJobUser.getPassword());
|
|
|
|
|
xxlJobUser.setPassword(passwordHash);
|
|
|
|
|
|
|
|
|
|
// check repeat
|
|
|
|
|
@ -130,7 +130,7 @@ public class JobUserController {
|
|
|
|
|
return Response.ofFail(I18nUtil.getString("system_lengh_limit")+"[4-20]" );
|
|
|
|
|
}
|
|
|
|
|
// md5 password
|
|
|
|
|
String passwordHash = SHA256Tool.sha256(xxlJobUser.getPassword());
|
|
|
|
|
String passwordHash = Sha256Tool.sha256(xxlJobUser.getPassword());
|
|
|
|
|
xxlJobUser.setPassword(passwordHash);
|
|
|
|
|
} else {
|
|
|
|
|
xxlJobUser.setPassword(null);
|
|
|
|
|
@ -180,8 +180,8 @@ public class JobUserController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// md5 password
|
|
|
|
|
String oldPasswordHash = SHA256Tool.sha256(oldPassword);
|
|
|
|
|
String passwordHash = SHA256Tool.sha256(password);
|
|
|
|
|
String oldPasswordHash = Sha256Tool.sha256(oldPassword);
|
|
|
|
|
String passwordHash = Sha256Tool.sha256(password);
|
|
|
|
|
|
|
|
|
|
// valid old pwd
|
|
|
|
|
Response<LoginInfo> loginInfoResponse = XxlSsoHelper.loginCheckWithAttr(request);
|
|
|
|
|
|