Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #19602 - Disable auth login when sessions are off #319

Merged
merged 1 commit into from Jul 21, 2017

Conversation

tstrachota
Copy link
Member

No description provided.

Copy link
Member

@ares ares left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one nit, otherwise 👍, works nicely

@@ -10,6 +10,11 @@ class LoginCommand < HammerCLI::AbstractCommand
option ["-p", "--password"], "PASSWORD", _("password to access the remote system")

def execute
if !(HammerCLIForeman.foreman_api_connection.authenticator.is_a?(HammerCLIForeman::Api::SessionAuthenticatorWrapper))
print_message(_("Can't perform login. Make sure you have sessions enabled."))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps "Make sure sessions are enabled in hammer configuration file" to make it more clear

@tstrachota
Copy link
Member Author

@ares updated

@ares
Copy link
Member

ares commented Jul 21, 2017

👍

@tstrachota tstrachota merged commit bfbfa5c into theforeman:master Jul 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants