From b9b9654d2cee86c39b58927ff547d7012b2471e2 Mon Sep 17 00:00:00 2001 From: bytedream Date: Sun, 6 Mar 2022 01:09:39 +0100 Subject: [PATCH] Renamed persistent credentials file and restricted login message for windows users --- cmd/crunchyroll-go/cmd/login.go | 4 ++-- cmd/crunchyroll-go/cmd/utils.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/crunchyroll-go/cmd/login.go b/cmd/crunchyroll-go/cmd/login.go index f15bc5b..fa55020 100644 --- a/cmd/crunchyroll-go/cmd/login.go +++ b/cmd/crunchyroll-go/cmd/login.go @@ -64,11 +64,11 @@ func loginStorePath() string { if loginPersistentFlag { if runtime.GOOS != "windows" { usr, _ := user.Current() - path = filepath.Join(usr.HomeDir, ".config/crunchyroll-go") + path = filepath.Join(usr.HomeDir, ".config/crunchy") } out.Info("The login information will be stored permanently UNENCRYPTED on your drive (%s)", path) - } else { + } else if runtime.GOOS != "windows" { out.Info("Due to security reasons, you have to login again on the next reboot") } diff --git a/cmd/crunchyroll-go/cmd/utils.go b/cmd/crunchyroll-go/cmd/utils.go index 839611b..09b4a2f 100644 --- a/cmd/crunchyroll-go/cmd/utils.go +++ b/cmd/crunchyroll-go/cmd/utils.go @@ -100,7 +100,7 @@ func loadCrunchy() { if runtime.GOOS != "windows" { usr, _ := user.Current() - files = append(files, filepath.Join(usr.HomeDir, ".config/crunchyroll-go")) + files = append(files, filepath.Join(usr.HomeDir, ".config/crunchy")) } var body []byte