Skip to content
This repository was archived by the owner on Dec 12, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow password login

3 participants