maybe fixed auth issue?
This commit is contained in:
parent
3df2030f1e
commit
2be1341404
@ -131,12 +131,8 @@ func (a *App) CheckPrerequisites() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
err = os.Remove(filepath.Join(dir, "FCLauncher", "authentication.json"))
|
|
||||||
if err != nil {
|
|
||||||
fmt.Printf("Unable to delete auth file\n")
|
|
||||||
}
|
|
||||||
os.MkdirAll(filepath.Join(dir, "FCLauncher"), 0755)
|
os.MkdirAll(filepath.Join(dir, "FCLauncher"), 0755)
|
||||||
f, _ := os.OpenFile(filepath.Join(dir, "FCLauncher", "authentication.json"), os.O_CREATE|os.O_RDWR, 0755)
|
f, _ := os.OpenFile(filepath.Join(dir, "FCLauncher", "authentication.json"), os.O_CREATE|os.O_RDWR|os.O_TRUNC, 0755)
|
||||||
defer f.Close()
|
defer f.Close()
|
||||||
data, _ := json.Marshal(a.Auth)
|
data, _ := json.Marshal(a.Auth)
|
||||||
f.Write(data)
|
f.Write(data)
|
||||||
|
@ -1 +1 @@
|
|||||||
48cb20b8d107dab0a7876a449352234a
|
ad9da3c17151b053a4d2fda8e3578901
|
Loading…
Reference in New Issue
Block a user