[child "mode" fails] Error after submitting empty settings for 2fa on npm website

website
security
priority:high
triaged

(Ed) #1

What I Wanted to Do

I was trying to enable 2fa on npmjs.com account settings

What Happened Instead

I haven’t selected any of three provided options for 2fa, after click on submit I’ve got this error message:

child "mode" fails because ["mode" is required], child "step" fails because ["step" must be one of [1]]
id: wubwub-7-west:51359bc4-82f5-4bc5-a606-1b52d36ec964

Reproduction Steps

Platform Info

$ npm --versions
```json
{ 'jani-api': '10.0.3',
  npm: '6.4.0',
  ares: '1.10.1-DEV',
  cldr: '31.0.1',
  http_parser: '2.7.0',
  icu: '59.1',
  modules: '57',
  nghttp2: '1.25.0',
  node: '8.9.4',
  openssl: '1.0.2n',
  tz: '2017b',
  unicode: '9.0',
  uv: '1.15.0',
  v8: '6.1.534.50',
  zlib: '1.2.11' }

$ node -p process.platform
darwin


(system) #2

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.