mirror of
https://gitee.com/dromara/MaxKey.git
synced 2025-12-06 17:08:29 +08:00
ChangePassword
This commit is contained in:
parent
98c1166176
commit
76f089a33e
@ -38,6 +38,7 @@ public class ChangePassword extends JpaBaseEntity{
|
||||
private String password;
|
||||
private String confirmpassword;
|
||||
private String decipherable;
|
||||
private String instId;
|
||||
|
||||
/**
|
||||
*
|
||||
@ -208,6 +209,13 @@ public class ChangePassword extends JpaBaseEntity{
|
||||
this.employeeNumber = employeeNumber;
|
||||
}
|
||||
|
||||
public String getInstId() {
|
||||
return instId;
|
||||
}
|
||||
|
||||
public void setInstId(String instId) {
|
||||
this.instId = instId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
|
||||
@ -313,7 +313,7 @@ public class UserInfoService extends JpaBaseService<UserInfo> {
|
||||
}
|
||||
|
||||
public void changePasswordProvisioning(UserInfo userInfo) {
|
||||
if(userInfo.getPassword()!=null && !userInfo.getPassword().equals("")) {
|
||||
if(StringUtils.isNotBlank(userInfo.getPassword())) {
|
||||
UserInfo loadUserInfo = findByUsername(userInfo.getUsername());
|
||||
ChangePassword changePassword=new ChangePassword();
|
||||
changePassword.setId(loadUserInfo.getId());
|
||||
@ -325,7 +325,7 @@ public class UserInfoService extends JpaBaseService<UserInfo> {
|
||||
changePassword.setEmployeeNumber(loadUserInfo.getEmployeeNumber());
|
||||
changePassword.setDecipherable(loadUserInfo.getDecipherable());
|
||||
changePassword.setPassword(loadUserInfo.getPassword());
|
||||
|
||||
changePassword.setInstId(loadUserInfo.getInstId());
|
||||
kafkaPersistService.send(
|
||||
KafkaIdentityTopic.PASSWORD_TOPIC,
|
||||
changePassword,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user