From a59e04eddd7cb401cf3ad73e24f976a27b4db3be Mon Sep 17 00:00:00 2001 From: Nicolas Mattia Date: Tue, 21 Nov 2023 15:16:16 +0100 Subject: [PATCH] wip --- HACKING.md | 8 +++++++- dfx.json | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/HACKING.md b/HACKING.md index 7850bbe611..6bb1e6013d 100644 --- a/HACKING.md +++ b/HACKING.md @@ -20,7 +20,7 @@ The build requires the following dependencies: ## Running Locally -To run the internet_identity canisters, proceed as follows after cloning the repository +To run the Internet Identity canister, proceed as follows after cloning the repository ```bash npm ci @@ -33,6 +33,12 @@ In a different terminal, run the following command to install the Internet Ident dfx deploy internet_identity --no-wallet ``` +> [!NOTE]\ +> By default, a dummy (fixed) CAPTCHA is used. If you want to use the real (random) CAPTCHA, set +> `II_DUMMY_CAPTCHA` to `0`:\ +> `II_DUMMY_CAPTCHA=0 dfx deploy internet_identity --no-wallet` + + Then the canister can be used as ```bash diff --git a/dfx.json b/dfx.json index 8effc079b0..be8528872f 100644 --- a/dfx.json +++ b/dfx.json @@ -4,7 +4,7 @@ "type": "custom", "candid": "src/internet_identity/internet_identity.did", "wasm": "internet_identity.wasm.gz", - "build": "bash -c 'II_FETCH_ROOT_KEY=1 scripts/build'", + "build": "bash -c 'II_FETCH_ROOT_KEY=1 II_DUMMY_CAPTCHA=${II_DUMMY_CAPTCHA:-1} scripts/build'", "shrink" : false }, "test_app": {