mirror of
https://github.com/rclone/rclone.git
synced 2026-01-04 09:33:36 +00:00
config encryption: set, remove and check to manage config file encryption #7859
This commit is contained in:
@@ -797,13 +797,11 @@ func SetPassword() {
|
||||
what := []string{"cChange Password", "uUnencrypt configuration", "qQuit to main menu"}
|
||||
switch i := Command(what); i {
|
||||
case 'c':
|
||||
changeConfigPassword()
|
||||
SaveConfig()
|
||||
ChangeConfigPasswordAndSave()
|
||||
fmt.Println("Password changed")
|
||||
continue
|
||||
case 'u':
|
||||
configKey = nil
|
||||
SaveConfig()
|
||||
RemoveConfigPasswordAndSave()
|
||||
continue
|
||||
case 'q':
|
||||
return
|
||||
@@ -815,8 +813,7 @@ func SetPassword() {
|
||||
what := []string{"aAdd Password", "qQuit to main menu"}
|
||||
switch i := Command(what); i {
|
||||
case 'a':
|
||||
changeConfigPassword()
|
||||
SaveConfig()
|
||||
ChangeConfigPasswordAndSave()
|
||||
fmt.Println("Password set")
|
||||
continue
|
||||
case 'q':
|
||||
|
||||
Reference in New Issue
Block a user