Skip to content

Commit 1a14abb

Browse files
committed
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>
1 parent b8034c0 commit 1a14abb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/command/registry/login.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,13 +263,13 @@ func loginClientSide(ctx context.Context, auth registrytypes.AuthConfig) (*regis
263263
return nil, err
264264
}
265265

266-
status, token, err := svc.Auth(ctx, &auth, command.UserAgent())
266+
_, token, err := svc.Auth(ctx, &auth, command.UserAgent())
267267
if err != nil {
268268
return nil, err
269269
}
270270

271271
return &registrytypes.AuthenticateOKBody{
272-
Status: status,
272+
Status: "Login Succeeded",
273273
IdentityToken: token,
274274
}, nil
275275
}

0 commit comments

Comments
 (0)