Commit e73480e7 authored by Quxl's avatar Quxl

x

parent 1aac2c7d
...@@ -12,6 +12,7 @@ import org.springframework.web.bind.annotation.PostMapping; ...@@ -12,6 +12,7 @@ import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseBody;
import com.egolm.common.StringUtil;
import com.egolm.common.bean.Rjx; import com.egolm.common.bean.Rjx;
import com.egolm.common.jdbc.Page; import com.egolm.common.jdbc.Page;
import com.egolm.film.api.service.AdminTokenService; import com.egolm.film.api.service.AdminTokenService;
...@@ -145,9 +146,9 @@ public class AdminUserController { ...@@ -145,9 +146,9 @@ public class AdminUserController {
user.setSalt(salt); user.setSalt(salt);
user.setPassword(encodePassword); user.setPassword(encodePassword);
service.saveUser(user); service.saveUser(user);
} else { } else if(StringUtil.isNotBlank(password)){
service.updateUserInfo(user); service.updateUserInfo(user);
service.changePassword(user.getUid(), user.getPassword()); service.changePassword(user.getUid(), password);
} }
return Rjx.jsonOk().setData(user); return Rjx.jsonOk().setData(user);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment