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

Commit

Permalink
hotfix: password in bcrypt api call
Browse files Browse the repository at this point in the history
  • Loading branch information
AlxisHenry committed Feb 15, 2023
1 parent 3156aef commit c7b421b
Showing 1 changed file with 2 additions and 2 deletions.
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;

0 comments on commit c7b421b

Please sign in to comment.