{"record":{"id":"c1a454b65a393e0b","repo":"Budibase/budibase","slug":"provided-information-is-not-valid-cannot-reset-pa","errorCode":null,"errorMessage":"Provided information is not valid, cannot reset password - please try again.","messagePattern":"Provided information is not valid, cannot reset password - please try again\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/backend-core/src/cache/passwordReset.ts","lineNumber":35,"sourceCode":" * @return returns the code that was stored to redis.\n */\nexport async function createCode(userId: string, info: any): Promise<string> {\n  const code = utils.newid()\n  const client = await redis.getPasswordResetClient()\n  await client.store(code, { userId, info }, TTL_SECONDS)\n  return code\n}\n\n/**\n * Given a reset code this will lookup to redis, check if the code is valid.\n * @param code The code provided via the email link.\n * @return returns the user ID if it is found\n */\nexport async function getCode(code: string): Promise<PasswordReset> {\n  const client = await redis.getPasswordResetClient()\n  const value = (await client.get(code)) as PasswordReset | undefined\n  if (!value) {\n    throw new Error(\n      \"Provided information is not valid, cannot reset password - please try again.\"\n    )\n  }\n  return value\n}\n\n/**\n * Given a reset code this will invalidate it.\n * @param code The code provided via the email link.\n */\nexport async function invalidateCode(code: string): Promise<void> {\n  const client = await redis.getPasswordResetClient()\n  await client.delete(code)\n}\n","sourceCodeStart":17,"sourceCodeEnd":50,"githubUrl":"https://github.com/Budibase/budibase/blob/a81a902e9a8fe55b467d106765f6638f12e35c49/packages/backend-core/src/cache/passwordReset.ts#L17-L50","documentation":"Error \"Provided information is not valid, cannot reset password - please try again.\" thrown in Budibase/budibase.","triggerScenarios":"Thrown at packages/backend-core/src/cache/passwordReset.ts:35 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a81a902e9a8fe55b467d106765f6638f12e35c49","analyzedAt":"2026-08-29T01:03:10.972Z","schemaVersion":2},"datasetVersion":"2026-08-29T02:17:18.158Z"}