Use basic auth if oauth2 is not explicitely requested
authorMikael Berthe <mikael@lilotux.net>
Wed, 12 Apr 2017 22:46:16 +0200
changeset 91 ae9ad3c7bca5
parent 90 686374268c54
child 92 05c201b548b0
Use basic auth if oauth2 is not explicitely requested
cmd/gondole-cli/main.go
--- a/cmd/gondole-cli/main.go	Wed Apr 12 22:31:21 2017 +0200
+++ b/cmd/gondole-cli/main.go	Wed Apr 12 22:46:16 2017 +0200
@@ -133,7 +133,7 @@
 	}
 
 	// Log in to the instance
-	if fAuthMethod == "basic" {
+	if fAuthMethod != "oauth2" {
 		err = instance.LoginBasic(fUsername, fPassword)
 	}