ajrosen / Bitwarden-Accelerator

Alfred Workflow to make using Bitwarden faster and smoother with all applications
GNU General Public License v3.0
32 stars 1 forks source link

Bug: Unlocking the vault fails with "invalid master password" #19

Closed zap0xfce2 closed 1 month ago

zap0xfce2 commented 1 month ago

There is a bug in unlock.sh on line 13:

You have to replace this:

curl -s -d "password=${p}" "${API}"/unlock | jq -r '.message // .data.title'

with this:

curl -X POST -H "Content-Type: application/json" -d "{\"password\": \"${p}\"}" "${API}"/unlock | jq -r '.message // .data.title'

to get unlocking your vault working. If you don't do the change it says invalid master password every time...

ajrosen commented 1 month ago

Hmm, it works for me using both payload formats. The Vault Management API specifies JSON, so I'll make the change.

I'm curious what version of the Bitwarden CLI you're using?

zap0xfce2 commented 1 month ago

Using bitwarden-cli 2024.6.0 here. Updated to 2024.8.1 but the bug still persists.

ajrosen commented 1 month ago

Fixed in 5.1.1