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 <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2025-03-24 18:19:03 +01:00
parent b8034c0ed7
commit 1a14abb748
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C

View File

@ -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 &registrytypes.AuthenticateOKBody{
Status: status,
Status: "Login Succeeded",
IdentityToken: token,
}, nil
}