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:
7
core.go
7
core.go
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user