Do not require password change

[ZITADOPER-1]
This commit is contained in:
Haim Kortovich
2024-05-15 20:44:48 -05:00
parent 118efa4a60
commit b5bce25462

View File

@@ -528,9 +528,10 @@ func (r *ZitadelClusterReconciler) reconcileInitialHumanUser(ctx context.Context
}
{
if _, err := managementClient.SetHumanInitialPassword(middleware.SetOrgID(ctx, org.Org.Id), &management.SetHumanInitialPasswordRequest{
if _, err := managementClient.SetHumanPassword(middleware.SetOrgID(ctx, org.Org.Id), &management.SetHumanPasswordRequest{
UserId: userid,
Password: password,
NoChangeRequired: true,
}); err != nil {
return ctrl.Result{}, fmt.Errorf("Error setting password for member: %v", err)
}