Asking to update admin password even password is of 20 length and mfa issue
I am getting an error as to become an admin update the password for a minimum of 20 characters.
I updated the password and logged in again still getting the same error.
And I am not able to set up mfa as It says something went wrong, please try again later.
Here is the image of admin password error
Below is the pic for mfa enable
Logs:
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/69559.js:1:278) @calcom/web:start: at handler (/calcom/apps/web/.next/server/pages/api/auth/two-factor/totp/setup.js:1:3199) { @calcom/web:start: code: 'ERR_CRYPTO_INVALID_KEYLEN' @calcom/web:start: }
Up!
Same for me!
Same for me
The ERR_CRYPTO_INVALID_KEYLEN can be solved by setting a 24 character encryption key for CALENDSO_ENCRYPTION_KEY using
openssl rand -base64 24
~~While that gets 2FA working, I'm still trying to figure out why admin access is not granted despite a password meeting length requirements and 2FA enabled.~~
Scratch that, the UI is just wonky. After setting up 2FA, you need to explicitly logout and log back in (possibly clearing site cookies after logging out), and then you'll get the admin controls and no banner.
I am (suddenly) experiencing this as well - even trying openssl rand -base64 24 doesn't seem to be working. I encounter both the banner to update the admin password, as well as the inability to add 2FA.