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