Skip to content

Commit

Permalink
copynit: s/WEB BASED/WEB-BASED/
Browse files Browse the repository at this point in the history
Signed-off-by: David Karlsson <[email protected]>
  • Loading branch information
dvdksn committed Sep 3, 2024
1 parent 2f206ff commit 81744d7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cli/internal/oauth/manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 <username>'")
_, _ = 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])
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/commandline/login.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <username>'

Your one-time device confirmation code is: LNFR-PGCJ
Expand Down
2 changes: 1 addition & 1 deletion e2e/registry/login_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 81744d7

Please sign in to comment.