Skip to content

Commit 4b86243

Browse files
committed
Set user pool sign-up and recovery options
Explicitly disables self sign-up and enables self account recovery when creating a user pool in IdentityClient.
1 parent 23246f4 commit 4b86243

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

veadk/integrations/ve_identity/identity_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,8 @@ def create_user_pool(self, name: str) -> tuple[str, str]:
738738

739739
request = CreateUserPoolRequest(
740740
name=name,
741+
self_sign_up_enabled=False,
742+
self_account_recovery_enabled=True,
741743
)
742744
response: CreateUserPoolResponse = self._api_client.create_user_pool(request)
743745

0 commit comments

Comments
 (0)