From c7b421b57ac9c39ecacee77954bcadc9b126e7f6 Mon Sep 17 00:00:00 2001 From: AlexisHenry Date: Wed, 15 Feb 2023 09:12:58 +0100 Subject: [PATCH] hotfix: password in bcrypt api call --- setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.sh b/setup.sh index b6f3f7e..e16a153 100644 --- a/setup.sh +++ b/setup.sh @@ -85,7 +85,7 @@ function credentials() { credentials; fi # Hash the password using the BCRYPT API. - bcrypt=$(curl --request POST --data "password=password*123&cost=4" https://www.toptal.com/developers/bcrypt/api/generate-hash.json 2>&1); + bcrypt=$(curl --request POST --data "password=${password}&cost=4" https://www.toptal.com/developers/bcrypt/api/generate-hash.json 2>&1); hashed_password=$(echo ${bcrypt} | awk -F '"hash":"' '{print $2 FS "."}' | cut -d '"' -f 1); } @@ -114,4 +114,4 @@ function setup() { echo -e ""; } -setup; \ No newline at end of file +setup;