commit
This commit is contained in:
@@ -51,6 +51,7 @@ public class SignUpRequest {
|
|||||||
.approved(false)
|
.approved(false)
|
||||||
.userRole(userRole)
|
.userRole(userRole)
|
||||||
.createdBy(userId)
|
.createdBy(userId)
|
||||||
|
.modifiedBy(userId)
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ public class UserManagementResponse {
|
|||||||
private final String userId;
|
private final String userId;
|
||||||
private final String userName;
|
private final String userName;
|
||||||
private final String email;
|
private final String email;
|
||||||
private final boolean isApproved;
|
private final boolean approved;
|
||||||
private final AgentUserRole userRole;
|
private final AgentUserRole userRole;
|
||||||
|
|
||||||
public static UserManagementResponse valueOf(AgentUser user) {
|
public static UserManagementResponse valueOf(AgentUser user) {
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ public class AgentUser extends AuditEntity {
|
|||||||
private AgentUserRole userRole;
|
private AgentUserRole userRole;
|
||||||
|
|
||||||
@Builder
|
@Builder
|
||||||
public AgentUser(String userId, String password, String name, AgentUserRole userRole, String email, boolean approved, String createdBy) {
|
public AgentUser(String userId, String password, String name, AgentUserRole userRole, String email, boolean approved, String createdBy, String modifiedBy) {
|
||||||
this.userId = userId;
|
this.userId = userId;
|
||||||
this.password = password;
|
this.password = password;
|
||||||
this.name = name;
|
this.name = name;
|
||||||
@@ -59,6 +59,7 @@ public class AgentUser extends AuditEntity {
|
|||||||
this.email = email;
|
this.email = email;
|
||||||
this.approved = approved;
|
this.approved = approved;
|
||||||
this.createdBy = createdBy;
|
this.createdBy = createdBy;
|
||||||
|
this.modifiedBy = modifiedBy;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void changePassword(String newPassword) {
|
public void changePassword(String newPassword) {
|
||||||
|
|||||||
Reference in New Issue
Block a user