try set initial password
[ZITADOPER-1]
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user