You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem: It returns E409 on Login, not sure if it's a bug
I disabled registration by setting max_users: -1 and added user manually to htpasswd (I tested login before disabling registration and login/publishing was working properly)
After disabling registration I tried login by npm login --registry=https://MY_VERDACCIO_ADDRESS_MASKED and entered credentials.
It responded like this:
npm notice Log in on https://MY_VERDACCIO_ADDRESS_MASKED
Username: admin
Password:
npm error code E409
npm error 409 Conflict - PUT https://MY_VERDACCIO_ADDRESS_MASKED/-/user/org.couchdb.user:admin/-rev/undefined - user registration disabled
npm error A complete log of this run can be found in: /Users/*********/.npm/_logs/2024-09-23T22_19_13_185Z-debug-0.log
What I'm trying to do is allowing logins only from manually added ones(which is on htpasswd) and disable registration.
I tried max_users: 0 before and it was allowing registration by npm adduser command, which I don't want to allow.
Any other solutions welcomed.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Problem: It returns E409 on Login, not sure if it's a bug
I disabled registration by setting
max_users: -1
and added user manually to htpasswd (I tested login before disabling registration and login/publishing was working properly)After disabling registration I tried login by
npm login --registry=https://MY_VERDACCIO_ADDRESS_MASKED
and entered credentials.It responded like this:
Here's my part of verdaccio config
What I'm trying to do is allowing logins only from manually added ones(which is on htpasswd) and disable registration.
I tried
max_users: 0
before and it was allowing registration bynpm adduser
command, which I don't want to allow.Any other solutions welcomed.
Beta Was this translation helpful? Give feedback.
All reactions