Renamed persistent credentials file and restricted login message for windows users

This commit is contained in:
bytedream 2022-03-06 01:09:39 +01:00
parent e855c16a2f
commit b9b9654d2c
2 changed files with 3 additions and 3 deletions

View file

@ -64,11 +64,11 @@ func loginStorePath() string {
if loginPersistentFlag { if loginPersistentFlag {
if runtime.GOOS != "windows" { if runtime.GOOS != "windows" {
usr, _ := user.Current() 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) 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") out.Info("Due to security reasons, you have to login again on the next reboot")
} }

View file

@ -100,7 +100,7 @@ func loadCrunchy() {
if runtime.GOOS != "windows" { if runtime.GOOS != "windows" {
usr, _ := user.Current() 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 var body []byte