mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Fix credential file overwrite with session id
This commit is contained in:
parent
253d8712c8
commit
e2f42493ac
1 changed files with 1 additions and 1 deletions
|
|
@ -143,7 +143,7 @@ func loadCrunchy() {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
out.Debug("Logged in with username '%s' and password '%s'. BLANK THIS LINE OUT IF YOU'RE ASKED TO POST THE DEBUG OUTPUT SOMEWHERE", split[0], split[1])
|
out.Debug("Logged in with username '%s' and password '%s'. BLANK THIS LINE OUT IF YOU'RE ASKED TO POST THE DEBUG OUTPUT SOMEWHERE", split[0], split[1])
|
||||||
if runtime.GOOS != "windows" {
|
if file != filepath.Join(os.TempDir(), ".crunchy") {
|
||||||
// the session id is written to a temp file to reduce the amount of re-logging in.
|
// the session id is written to a temp file to reduce the amount of re-logging in.
|
||||||
// it seems like that crunchyroll has also a little cooldown if a user logs in too often in a short time
|
// it seems like that crunchyroll has also a little cooldown if a user logs in too often in a short time
|
||||||
if err = os.WriteFile(filepath.Join(os.TempDir(), ".crunchy"), []byte(crunchy.SessionID), 0600); err != nil {
|
if err = os.WriteFile(filepath.Join(os.TempDir(), ".crunchy"), []byte(crunchy.SessionID), 0600); err != nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue