mirror of
https://gitee.com/dromara/MaxKey.git
synced 2025-12-08 01:48:33 +08:00
commit
fc5924154e
@ -69,7 +69,9 @@ public class ChangePasswodController {
|
|||||||
public ResponseEntity<?> changePasswod(
|
public ResponseEntity<?> changePasswod(
|
||||||
@RequestBody ChangePassword changePassword,
|
@RequestBody ChangePassword changePassword,
|
||||||
@CurrentUser UserInfo currentUser) {
|
@CurrentUser UserInfo currentUser) {
|
||||||
|
if(!currentUser.getId().equals(changePassword.getId())){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
changePassword.setUserId(currentUser.getId());
|
changePassword.setUserId(currentUser.getId());
|
||||||
changePassword.setUsername(currentUser.getUsername());
|
changePassword.setUsername(currentUser.getUsername());
|
||||||
changePassword.setInstId(currentUser.getInstId());
|
changePassword.setInstId(currentUser.getInstId());
|
||||||
|
|||||||
@ -66,7 +66,9 @@ public class ProfileController {
|
|||||||
@CurrentUser UserInfo currentUser,
|
@CurrentUser UserInfo currentUser,
|
||||||
BindingResult result) {
|
BindingResult result) {
|
||||||
logger.debug(userInfo.toString());
|
logger.debug(userInfo.toString());
|
||||||
|
if(!currentUser.getId().equals(userInfo.getId())){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
// if(userInfo.getExtraAttributeValue()!=null){
|
// if(userInfo.getExtraAttributeValue()!=null){
|
||||||
// String []extraAttributeLabel=userInfo.getExtraAttributeName().split(",");
|
// String []extraAttributeLabel=userInfo.getExtraAttributeName().split(",");
|
||||||
// String []extraAttributeValue=userInfo.getExtraAttributeValue().split(",");
|
// String []extraAttributeValue=userInfo.getExtraAttributeValue().split(",");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user