You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per #7914, it seems like admins need to have 2FA enabled. However, when trying to enable 2FA, the user only sees "Something went wrong.".
Steps to Reproduce
Sign in to your cal.com instance
Click on Settings → Two factor auth
Check "Two factor authentication"
Enter your password
Click "Continue"
Technical details
Browser Version: Firefox 109.0.1 and Edge 112.0.1698.0 on openSUSE Tumbleweed
Cal.com Docker container v2.7.6
server log:
@calcom/web:start: RangeError: Invalid key length
@calcom/web:start: at Cipheriv.createCipherBase (node:internal/crypto/cipher:122:19)
@calcom/web:start: at Cipheriv.createCipherWithIV (node:internal/crypto/cipher:141:3)
@calcom/web:start: at new Cipheriv (node:internal/crypto/cipher:249:3)
@calcom/web:start: at Object.createCipheriv (node:crypto:141:10)
@calcom/web:start: at symmetricEncrypt (/calcom/apps/web/.next/server/chunks/8650.js:29:66)
@calcom/web:start: at handler (/calcom/apps/web/.next/server/pages/api/auth/two-factor/totp/setup.js:329:107)
@calcom/web:start: at async Object.apiResolver (/calcom/node_modules/next/dist/server/api-utils/node.js:372:9)
@calcom/web:start: at async NextNodeServer.runApi (/calcom/node_modules/next/dist/server/next-server.js:513:9)
@calcom/web:start: at async Object.fn (/calcom/node_modules/next/dist/server/next-server.js:815:35)
@calcom/web:start: at async Router.execute (/calcom/node_modules/next/dist/server/router.js:243:32)
@calcom/web:start: at async NextNodeServer.runImpl (/calcom/node_modules/next/dist/server/base-server.js:432:29)
@calcom/web:start: at async NextNodeServer.handleRequestImpl (/calcom/node_modules/next/dist/server/base-server.js:375:20)
@calcom/web:start: at async /calcom/node_modules/next/dist/server/base-server.js:157:99 {
@calcom/web:start: code: 'ERR_CRYPTO_INVALID_KEYLEN'
@calcom/web:start: }
The browser tries to post to /api/auth/two-factor/totp/setup, which results in HTTP 500 (Internal Server Error)
The text was updated successfully, but these errors were encountered:
Issue Summary
As per #7914, it seems like admins need to have 2FA enabled. However, when trying to enable 2FA, the user only sees "Something went wrong.".
Steps to Reproduce
Technical details
/api/auth/two-factor/totp/setup
, which results in HTTP 500 (Internal Server Error)The text was updated successfully, but these errors were encountered: