From 1a14abb74853d5f923ba1bd363ea23170d681737 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 24 Mar 2025 18:19:03 +0100 Subject: [PATCH] cli/command/registry: loginClientSide: use locally defined message The "Service.Auth" pretended to return a message from the registry, but the message returned is hard-coded in the registry package. Remove its use to make this more transparent, and not to pretend this is anything returned by the registry. Signed-off-by: Sebastiaan van Stijn --- cli/command/registry/login.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/command/registry/login.go b/cli/command/registry/login.go index a3a58f6df2..701978c1cd 100644 --- a/cli/command/registry/login.go +++ b/cli/command/registry/login.go @@ -263,13 +263,13 @@ func loginClientSide(ctx context.Context, auth registrytypes.AuthConfig) (*regis return nil, err } - status, token, err := svc.Auth(ctx, &auth, command.UserAgent()) + _, token, err := svc.Auth(ctx, &auth, command.UserAgent()) if err != nil { return nil, err } return ®istrytypes.AuthenticateOKBody{ - Status: status, + Status: "Login Succeeded", IdentityToken: token, }, nil }