lib/validator.js
function requirepass(val) {
  if(val && val.length > AUTHPASS_MAX_LEN) {
    throw new Error(
      util.format('Password is longer than %s', AUTHPASS_MAX_LEN));
  }
}
function requirepass(val) {
  if(val && val.length > AUTHPASS_MAX_LEN) {
    throw new Error(
      util.format('Password is longer than %s', AUTHPASS_MAX_LEN));
  }
}
function requirepass ( val ) { if ( val && val . length > AUTHPASS_MAX_LEN ) { throw new Error ( util . format ( 'Password is longer than %s' , AUTHPASS_MAX_LEN ) ) ; } }
Validate a requirepass value.
Validate a requirepass value .