Update login.go

This commit is contained in:
Daniel Hougaard
2025-06-02 20:38:07 +04:00
parent 0d0fddb53a
commit 4061feba21

View File

@@ -986,7 +986,7 @@ func browserCliLogin() (models.UserCredentials, error) {
defaultPrintStatement := fmt.Sprintf("\n\nTo complete your login, open this address in your browser: %v \n", url)
if os.Getenv("BROWSER") != "" && (runtime.GOOS == "darwin" || runtime.GOOS == "windows") {
if runtime.GOOS == "darwin" || runtime.GOOS == "windows" {
if err := browser.OpenURL(url); err != nil {
fmt.Print(defaultPrintStatement)
} else {