try set initial password

[ZITADOPER-1]
This commit is contained in:
Haim Kortovich
2024-05-15 20:18:39 -05:00
parent d3a57199cb
commit 118efa4a60

View File

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