Merge pull request #5958 from thaJeztah/login_message

cli/command/registry: loginClientSide: use locally defined message
This commit is contained in:
Sebastiaan van Stijn 2025-03-31 14:46:18 +02:00 committed by GitHub
commit 0c4912b0ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -263,13 +263,13 @@ func loginClientSide(ctx context.Context, auth registrytypes.AuthConfig) (*regis
return nil, err return nil, err
} }
status, token, err := svc.Auth(ctx, &auth, command.UserAgent()) _, token, err := svc.Auth(ctx, &auth, command.UserAgent())
if err != nil { if err != nil {
return nil, err return nil, err
} }
return &registrytypes.AuthenticateOKBody{ return &registrytypes.AuthenticateOKBody{
Status: status, Status: "Login Succeeded",
IdentityToken: token, IdentityToken: token,
}, nil }, nil
} }