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

Password hashing doesn't work when user name is present. #17

Closed
vitaly-t opened this issue Jul 5, 2019 · 1 comment
Closed

Password hashing doesn't work when user name is present. #17

vitaly-t opened this issue Jul 5, 2019 · 1 comment
Labels

Comments

@vitaly-t
Copy link
Owner

vitaly-t commented Jul 5, 2019

Password hashing option doesn't work when the user name is present.

It is supposed to work in both cases.

@vitaly-t vitaly-t added the bug label Jul 5, 2019
vitaly-t added a commit that referenced this issue Jul 5, 2019
@vitaly-t
Copy link
Owner Author

vitaly-t commented Jul 5, 2019

Fixed in version 2.4.2

const parse = require('connection-string');

const a = parse('test://', {user: 'name', password: '123'});

a.toString({passwordHash: '*'}); //=> test://name:***@

@vitaly-t vitaly-t closed this as completed Jul 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant