vwxyzjn / portwarden

Create Encrypted Backups of Your Bitwarden Vault with Attachments
MIT License
587 stars 33 forks source link

Fix getting bw_session and salt from env #45

Open maxweisspoker opened 3 months ago

maxweisspoker commented 3 months ago

This PR fixes a couple minor errors. The first one is it always attempts to login/unlock even if the BW_SESSION env var is set. Secondly, the Salt env var is not used/read as it is documented to be, so that was fixed. I also ran go mod tidy with go1.22 just for kicks, and was able to compile successfully the ./cmd/portwarden program, which is all that I care about (and what these fixes were intended for).