mirror of
https://gitee.com/dromara/MaxKey.git
synced 2026-05-14 20:50:14 +08:00
v 3.0.0 GA ReleaseNotes &StringUtils
This commit is contained in:
@@ -182,7 +182,7 @@ public class RegistrationController {
|
||||
@RequestMapping(value={"/registeron"})
|
||||
@ResponseBody
|
||||
public Message registeron(UserInfo userInfo,@RequestParam String emailMobile) throws ServletException, IOException {
|
||||
if(StringUtils.isNullOrBlank(emailMobile)) {
|
||||
if(StringUtils.isEmpty(emailMobile)) {
|
||||
return new Message(WebContext.getI18nValue("register.emailMobile.error"),"1");
|
||||
}
|
||||
if(StringUtils.isValidEmail(emailMobile)) {
|
||||
|
||||
@@ -135,7 +135,7 @@ public class SafeController {
|
||||
_logger.debug("App Login Password : "+userInfo.getAppLoginPassword());
|
||||
_logger.debug("App Login new Password : "+ReciprocalUtils.encode(newPassword));
|
||||
if(newPassword.equals(confirmPassword)){
|
||||
if(StringUtils.isNullOrBlank(userInfo.getAppLoginPassword())||userInfo.getAppLoginPassword().equals(ReciprocalUtils.encode(oldPassword))){
|
||||
if(StringUtils.isEmpty(userInfo.getAppLoginPassword())||userInfo.getAppLoginPassword().equals(ReciprocalUtils.encode(oldPassword))){
|
||||
userInfo.setAppLoginPassword(ReciprocalUtils.encode(newPassword));
|
||||
boolean change= userInfoService.changeAppLoginPassword(userInfo);
|
||||
_logger.debug(""+change);
|
||||
|
||||
@@ -50,7 +50,7 @@ public class SingleSignOnFilter implements Filter {
|
||||
// 浠巗ession涓幏鍙栧瓨鏀剧殑appid
|
||||
String appId = (String) session.getAttribute(WebConstants.SINGLE_SIGN_ON_APP_ID);
|
||||
// 鑾峰彇鏈<E5BD87>鍚庝竴涓<E7ABB4>"/"鐨勬暟鎹綔涓篴ppid锛屼繚瀛樺湪session涓<6E>
|
||||
if (StringUtils.isNullOrBlank(appId)) {
|
||||
if (StringUtils.isEmpty(appId)) {
|
||||
String uir = httpServletRequest.getRequestURI();
|
||||
session.setAttribute(WebConstants.SINGLE_SIGN_ON_APP_ID,
|
||||
uir.substring(uir.lastIndexOf("/") + 1));
|
||||
|
||||
@@ -292,7 +292,7 @@ public class UserInfoController {
|
||||
binder.registerCustomEditor(String.class, new PropertyEditorSupport() {
|
||||
@Override
|
||||
public void setAsText(String value) {
|
||||
if(StringUtils.isNullOrBlank(value)){
|
||||
if(StringUtils.isEmpty(value)){
|
||||
setValue(null);
|
||||
}else{
|
||||
setValue(value);
|
||||
|
||||
Reference in New Issue
Block a user