mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-08 23:25:51 +01:00
Remove mentioning of 'always-auth'
It should be solved by using npm@2 anyway.
This commit is contained in:
parent
025e23627f
commit
97c7c6814f
@ -40,9 +40,6 @@ $ sinopia
|
||||
# npm configuration
|
||||
$ npm set registry http://localhost:4873/
|
||||
|
||||
# if you have any restricted packages, you should add this:
|
||||
$ npm set always-auth true
|
||||
|
||||
# if you use HTTPS, add an appropriate CA information
|
||||
# ("null" means get CA list from OS)
|
||||
$ npm set ca null
|
||||
|
@ -86,7 +86,7 @@ module.exports.allow = function(config) {
|
||||
if (req.remote_user.error) {
|
||||
var message = "can't "+action+' restricted package, ' + req.remote_user.error
|
||||
} else {
|
||||
var message = "can't "+action+" restricted package without auth, did you forget 'npm set always-auth true'?"
|
||||
var message = "can't "+action+" restricted package, you are not logged in"
|
||||
}
|
||||
next( Error[403](message) )
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user