We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c754874 commit dd33c2bCopy full SHA for dd33c2b
pkg/cli/login.go
@@ -173,6 +173,10 @@ func checkTokenFormat(token string) error {
173
}
174
175
func verifyToken(registryHost string, token string) (username string, err error) {
176
+ if token == "" {
177
+ return "", fmt.Errorf("Token is empty")
178
+ }
179
+
180
resp, err := http.PostForm(addressWithScheme(registryHost)+"/cog/v1/verify-token", url.Values{
181
"token": []string{token},
182
})
0 commit comments