From 97c7c6814f3fde59d407a11291f626fbe110eb95 Mon Sep 17 00:00:00 2001 From: Alex Kocharin Date: Sat, 28 Mar 2015 15:14:01 +0300 Subject: [PATCH] Remove mentioning of 'always-auth' It should be solved by using npm@2 anyway. --- README.md | 3 --- lib/middleware.js | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index bea257472..6cf91dd47 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/lib/middleware.js b/lib/middleware.js index 3ec5eda70..3fc6f5695 100644 --- a/lib/middleware.js +++ b/lib/middleware.js @@ -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 {