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

Allow password login #20

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Allow password login #20

wants to merge 3 commits into from

Conversation

plumdog
Copy link

@plumdog plumdog commented Jun 25, 2018

To fix #19.

I hope this is the right approach.

Things I haven't done that might matter:

  • Changed the name of the pubKey variable
  • Written tests
  • Done any rejigging to reduce repeatiness

@coveralls
Copy link

Coverage Status

Coverage decreased (-3.02%) to 55.872% when pulling 5413ca1 on plumdog:allow_password_login into 1973878 on cmrigney:master.

Copy link
Owner

@cmrigney cmrigney left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! Could you also add a couple tests to cover this case?

removePasswordLogin(username) {
const self = this;
_.remove(this.passwordLogins, (p) => {
self._log(util.format('Removed password login for username %s', username));
Copy link
Owner

Choose a reason for hiding this comment

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

Please move this log message outside of this function. It will be called for each user in the passwordLogins. It would also be useful to check that the length changed to ensure the user was actually removed.

@cmrigney
Copy link
Owner

cmrigney commented Jul 4, 2018

Also, please update the typescript definition file node-sftp-s3.d.ts

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.

Allow password login
3 participants