diff --git a/cli/internal/oauth/manager/manager.go b/cli/internal/oauth/manager/manager.go index a39612a2a4..82f541f48b 100644 --- a/cli/internal/oauth/manager/manager.go +++ b/cli/internal/oauth/manager/manager.go @@ -92,7 +92,7 @@ func (m *OAuthManager) LoginDevice(ctx context.Context, w io.Writer) (*types.Aut return nil, ErrDeviceLoginStartFail } - _, _ = fmt.Fprintln(w, aec.Bold.Apply("\nUSING WEB BASED LOGIN")) + _, _ = fmt.Fprintln(w, aec.Bold.Apply("\nUSING WEB-BASED LOGIN")) _, _ = fmt.Fprintln(w, "To sign in with credentials on the command line, use 'docker login -u '") _, _ = fmt.Fprintf(w, "\nYour one-time device confirmation code is: "+aec.Bold.Apply("%s\n"), state.UserCode) _, _ = fmt.Fprintf(w, aec.Bold.Apply("Press ENTER")+" to open your browser or submit your device code here: "+aec.Underline.Apply("%s\n"), strings.Split(state.VerificationURI, "?")[0]) diff --git a/docs/reference/commandline/login.md b/docs/reference/commandline/login.md index 45260ccb0b..3a360c4b25 100644 --- a/docs/reference/commandline/login.md +++ b/docs/reference/commandline/login.md @@ -180,7 +180,7 @@ code, and authenticate. ```console $ docker login -USING WEB BASED LOGIN +USING WEB-BASED LOGIN To sign in with credentials on the command line, use 'docker login -u ' Your one-time device confirmation code is: LNFR-PGCJ diff --git a/e2e/registry/login_test.go b/e2e/registry/login_test.go index 523e00d065..8cc353e4af 100644 --- a/e2e/registry/login_test.go +++ b/e2e/registry/login_test.go @@ -30,7 +30,7 @@ func TestOauthLogin(t *testing.T) { assert.NilError(t, err) output, _ := io.ReadAll(p) - assert.Check(t, strings.Contains(string(output), "USING WEB BASED LOGIN"), string(output)) + assert.Check(t, strings.Contains(string(output), "USING WEB-BASED LOGIN"), string(output)) } func TestLoginWithEscapeHatch(t *testing.T) {