-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat: add support for profile cli command #392 (change password) #1034
Conversation
- it allows to update password npm profile set password - display current profile npm profile get https://docs.npmjs.com/cli/profile
on npm by defaul is min 7 characters, this might be configurable in the future.
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.
LGTM but only one minor change 😅
src/api/endpoint/api/user.js
Outdated
if (validatePassword(password) === false) { | ||
/* eslint new-cap:off */ | ||
return next(ErrorCode.getCode(HTTP_STATUS.BAD_REQUEST, API_ERROR.PASSWORD_SHORT())); | ||
/* eslint new-cap:off */ |
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.
I think you tried to re-enable new-cap rule, but cp was wrong 😂
This still needs more test, functional and increase coverage. But the basic functionality works. |
It's ready for CR, I'll defer the functional test for a future PR, I need to upgrade first |
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.
Looks good to me 👍 Tested locally as well. 😃
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Type: feat
The following has been addressed in the PR:
Description:
https://docs.npmjs.com/cli/profile
Resolves #392
Refers to #913
ℹ️ Currently only some plugins (verdaccio-htpasswd) implement the
changePassword
feature, thus, if you are using an authentification plugin that does not support this feature, I'd suggest open a request in their repositories.