1
0
mirror of https://github.com/gilbertchen/duplicacy synced 2025-12-06 00:03:38 +00:00

Always take password from env or pref even if resetPassword is true

This commit is contained in:
Gilbert Chen
2017-11-21 12:31:54 -05:00
parent 34e49d4589
commit 214a119507

View File

@@ -200,7 +200,7 @@ func GetPassword(preference Preference, passwordType string, prompt string,
passwordID := passwordType passwordID := passwordType
preferencePassword := GetPasswordFromPreference(preference, passwordType) preferencePassword := GetPasswordFromPreference(preference, passwordType)
if preferencePassword != "" && !resetPassword { if preferencePassword != "" {
return preferencePassword return preferencePassword
} }