1
0
mirror of https://github.com/vwxyzjn/portwarden synced 2025-12-15 15:33:16 +00:00

API-19 # Add simple arguments to enable Portwarden not logging out of Bitwarden

This commit is contained in:
Costa Huang
2019-01-10 00:34:53 -05:00
parent 5281ef7324
commit 74a7e4e6e7
2 changed files with 12 additions and 3 deletions

View File

@@ -62,8 +62,11 @@ func CreateBackupBytesUsingBitwardenLocalJSON(dataJson []byte, BITWARDENCLI_APPD
return CreateBackupBytes(passphrase, sessionKey, sleepMilliseconds)
}
func CreateBackupFile(fileName, passphrase, sessionKey string, sleepMilliseconds int) error {
defer BWLogout()
func CreateBackupFile(fileName, passphrase, sessionKey string, sleepMilliseconds int, noLogout bool) error {
if !noLogout {
fmt.Println("true")
defer BWLogout()
}
if !strings.HasSuffix(fileName, ".portwarden") {
fileName += ".portwarden"
}