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

Support PI User Authentication mode with empty password #610

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Jinzy
Copy link

@Jinzy Jinzy commented Aug 23, 2021

Support PI User Authentication mode, in the case of when user name provided while, with empty password.

Copy link
Owner

@Hugovdberg Hugovdberg left a comment

Choose a reason for hiding this comment

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

Sorry for the late reply, I have been terribly busy with other projects.. I hope you can still respond to my request for a small change, otherwise I will see if I can make a new PR and attribute it to you.

@@ -79,10 +79,6 @@ def __init__(
if server and server not in self.servers:
message = 'Server "{server}" not found, using the default server.'
warn(message=message.format(server=server), category=UserWarning)
if bool(username) != bool(password):
Copy link
Owner

Choose a reason for hiding this comment

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

I think that a username without a password is a valid case, but a password without a user is still invalid, right? In that case we should not remove this check entirely, but make it more similar to the next check for a domain without a username.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants