Skip to content

Commit

Permalink
fix(publish): Allow --no-verify-access to prevent checking for acco…
Browse files Browse the repository at this point in the history
…unt-level 2FA
  • Loading branch information
evocateur committed Jul 16, 2019
1 parent a3d264e commit ce58d8f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions commands/publish/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,14 +452,14 @@ class PublishCommand extends Command {
return verifyNpmPackageAccess(this.packagesToPublish, username, this.conf.snapshot);
}
});
}

// read profile metadata to determine if account-level 2FA is enabled
chain = chain.then(() => getTwoFactorAuthRequired(this.conf.snapshot));
chain = chain.then(isRequired => {
// notably, this still doesn't handle package-level 2FA requirements
this.twoFactorAuthRequired = isRequired;
});
// read profile metadata to determine if account-level 2FA is enabled
chain = chain.then(() => getTwoFactorAuthRequired(this.conf.snapshot));
chain = chain.then(isRequired => {
// notably, this still doesn't handle package-level 2FA requirements
this.twoFactorAuthRequired = isRequired;
});
}

return chain;
}
Expand Down

0 comments on commit ce58d8f

Please sign in to comment.