rlidwka / sinopia

Private npm repository server
5.51k stars 655 forks source link

restrict adduser to authenticated? #387

Open steevhise opened 8 years ago

steevhise commented 8 years ago

Is there a way to configure sinopia to only let logged-in users add users? The docs are unclear on this.

tridib commented 7 years ago

This may not be the right answer of your question, but may solve the open registration issue. I have registered required number of users and then quickly changed max_users: -1. auth: htpasswd: file: ./htpasswd

Maximum amount of users allowed to register, defaults to "+inf".

# You can set this to -1 to disable registration.
max_users: -1