mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 04:57:33 +00:00
fix: check user is unique (#1678)
This commit is contained in:
@@ -63,7 +63,7 @@ func AddHumanUserRequestToDomain(req *mgmt_pb.AddHumanUserRequest) *domain.Human
|
||||
}
|
||||
}
|
||||
if req.InitialPassword != "" {
|
||||
h.Password = &domain.Password{SecretString: req.InitialPassword}
|
||||
h.Password = &domain.Password{SecretString: req.InitialPassword, ChangeRequired: true}
|
||||
}
|
||||
|
||||
return h
|
||||
@@ -95,7 +95,7 @@ func ImportHumanUserRequestToDomain(req *mgmt_pb.ImportHumanUserRequest) *domain
|
||||
}
|
||||
if req.Password != "" {
|
||||
h.Password = &domain.Password{SecretString: req.Password}
|
||||
h.Password.ChangeRequired = true
|
||||
h.Password.ChangeRequired = req.PasswordChangeRequired
|
||||
}
|
||||
|
||||
return h
|
||||
|
Reference in New Issue
Block a user