diff --git a/conans/client/rest/auth_manager.py b/conans/client/rest/auth_manager.py index d7bf09a4d77..ad8f4cbfe63 100644 --- a/conans/client/rest/auth_manager.py +++ b/conans/client/rest/auth_manager.py @@ -48,7 +48,7 @@ def call_rest_api_method(self, remote, method_name, *args, **kwargs): # token is None when you change user with user command # Anonymous is not enough, ask for a user ConanOutput().info('Please log in to "%s" to perform this action. ' - 'Execute "conan user" command.' % remote.name) + 'Execute "conan remote login" command.' % remote.name) return self._retry_with_new_token(user, remote, method_name, *args, **kwargs) elif token and refresh_token: # If we have a refresh token try to refresh the access token @@ -80,7 +80,7 @@ def _retry_with_new_token(self, user, remote, method_name, *args, **kwargs): out.error('Wrong user or password') else: out.error('Wrong password for user "%s"' % user) - out.info('You can change username with "conan user "') + out.info('You can change username with "conan remote login "') else: return self.call_rest_api_method(remote, method_name, *args, **kwargs) diff --git a/conans/client/rest/rest_client_common.py b/conans/client/rest/rest_client_common.py index 518b67ff554..c7b85c6d95a 100644 --- a/conans/client/rest/rest_client_common.py +++ b/conans/client/rest/rest_client_common.py @@ -154,7 +154,7 @@ def server_capabilities(self, user=None, password=None): url = self.router.ping() # logger.debug("REST: ping: %s" % url) if user and password: - # This can happen in "conan user" cmd. Instead of empty token, use HttpBasic + # This can happen in "conan remote login" cmd. Instead of empty token, use HttpBasic auth = HTTPBasicAuth(user, password) else: auth = self.auth