Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

hotfix: password in bcrypt api call #46

Merged
merged 1 commit into from
Feb 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -114,4 +114,4 @@ function setup() {
echo -e "";
}

setup;
setup;