Skip to content

Commit

Permalink
Merge pull request #18183 from mozilla/fxa-10880
Browse files Browse the repository at this point in the history
fix(customs): Don't call customs on the GET /recoveryCodes/exist endpoint
  • Loading branch information
vbudhram authored Jan 6, 2025
2 parents ff37d0d + 3bd8545 commit 9634c11
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions packages/fxa-auth-server/lib/routes/recovery-codes.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,7 @@ module.exports = (log, db, config, customs, mailer, glean) => {
async handler(request) {
log.begin('checkRecoveryCodesExist', request);

const { email, uid } = request.auth.credentials;

await customs.check(request, email, 'checkRecoveryCodesExist');
const { uid } = request.auth.credentials;

const { hasBackupCodes, count } =
await backupCodeManager.getCountForUserId(uid);
Expand Down
1 change: 0 additions & 1 deletion packages/fxa-customs-server/lib/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ const ACCOUNT_STATUS_ACTION = {
sendUnblockCode: true,
recoveryKeyExists: true,
getCredentialsStatus: true,
checkRecoveryCodesExist: true,
recoveryPhoneAvailable: true,
};

Expand Down

0 comments on commit 9634c11

Please sign in to comment.