mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
parent
037b3aea6a
commit
31bd3c9db7
1 changed files with 5 additions and 1 deletions
|
@ -194,7 +194,11 @@ module.exports = function(config_hash) {
|
|||
})
|
||||
} else {
|
||||
if (typeof(req.body.name) !== 'string' || typeof(req.body.password) !== 'string') {
|
||||
return next( Error[400]('user/password is not found in request (npm issue?)') )
|
||||
if (typeof(req.body.password_sha)) {
|
||||
return next( Error[422]("your npm version is outdated\nPlease update to npm@1.4.5 or greater.\nSee https://github.com/rlidwka/sinopia/issues/93 for details.") )
|
||||
} else {
|
||||
return next( Error[422]('user/password is not found in request (npm issue?)') )
|
||||
}
|
||||
}
|
||||
auth.add_user(req.body.name, req.body.password, function(err) {
|
||||
if (err) {
|
||||
|
|
Loading…
Reference in a new issue