Skip to content

Commit

Permalink
fix: lower-case the npm username (#190) (#341)
Browse files Browse the repository at this point in the history
Co-authored-by: Jeff Tian <Jeff.Tian@externals.adidas.com>
  • Loading branch information
Jeff-Tian and ap-tianjef committed May 19, 2020
1 parent e0ed88d commit 3c5146d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ async function getNpmToken({npm}) {
let token;

try {
const result = await profile.loginCouch(npm.username, npm.password, {registry: npm.registry});
const result = await profile.loginCouch(npm.username.toLowerCase(), npm.password, {registry: npm.registry});
token = result.token;
} catch (error) {
if (error.code === 'EOTP') {
Expand Down

0 comments on commit 3c5146d

Please sign in to comment.