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 098045d commit 4185079Copy full SHA for 4185079
cmd/crane/cmd/auth.go
@@ -249,7 +249,7 @@ func login(opts loginOptions) error {
249
opts.password = strings.TrimSuffix(string(contents), "\n")
250
opts.password = strings.TrimSuffix(opts.password, "\r")
251
}
252
- if opts.user == "" && opts.password == "" {
+ if opts.user == "" || opts.password == "" {
253
return errors.New("username and password required")
254
255
cf, err := config.Load(os.Getenv("DOCKER_CONFIG"))
0 commit comments