-
Notifications
You must be signed in to change notification settings - Fork 1k
Send using password: NO when no password is used
#1078
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
Conversation
using password: NO when no password is used
e6237fb to
6ed3594
Compare
9d40a13 to
e0df29c
Compare
e0df29c to
4d0921f
Compare
lance6716
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rest lgtm.
| "github.com/stretchr/testify/require" | ||
| ) | ||
|
|
||
| func TestCheckSha2CacheCredentials_EmptyPassword(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this test be put into auth_test.go, below TestCompareSha256PasswordAuthData_EmptyPassword?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you want to move checkSha2CacheCredentials in auth.go as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, your reason is to use auth_switch_response_test.go to check function in auth_switch_response.go. I think it's reasonable from this view.
Without this PR, the
using password: NOappears when the user password on the server is empty. It should be the opposite: theYESorNOshould depend on the data sent by the client, not the password stored for the user.