From 860a86586b79aeb727283f271d039eae3abb75e2 Mon Sep 17 00:00:00 2001 From: Yuli Date: Tue, 17 Mar 2020 13:55:29 +0200 Subject: [PATCH] change consent --- create-test-user.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/create-test-user.sh b/create-test-user.sh index 5116fdb..0f95c3e 100755 --- a/create-test-user.sh +++ b/create-test-user.sh @@ -11,16 +11,18 @@ RESULT=`curl -s http://localhost:3000/v1/consent/email/test@paranoidguy.com/cont echo "Create anonymous consent by email 1: $RESULT" RESULT=`curl -s http://localhost:3000/v1/consent/email/test@paranoidguy.com/contract-approval -XPOST \ - -H "X-Bunker-Token: $XTOKEN"` \ + -H "X-Bunker-Token: $XTOKEN"` -H "Content-Type: application/json"` \ -d '{"lawfulbasis":"contract"}' echo "Create anonymous consent by email 2: $RESULT" RESULT=`curl -s http://localhost:3000/v1/consent/phone/4444/contract-approval -XPOST \ - -H "X-Bunker-Token: $XTOKEN"` + -H "X-Bunker-Token: $XTOKEN"` -H "Content-Type: application/json"` \ + -d '{"lawfulbasis":"contract"}' echo "Create anonymous consent by phone 1: $RESULT" RESULT=`curl -s http://localhost:3000/v1/consent/phone/4444/contract-approval -XPOST \ - -H "X-Bunker-Token: $XTOKEN" -H "Content-Type: application/json"` + -H "X-Bunker-Token: $XTOKEN" -H "Content-Type: application/json"` \ + -d '{"lawfulbasis":"contract"}' echo "Create anonymous consent by phone 2: $RESULT" echo "Creating user."