Skip to content

Commit

Permalink
Backup Codes: Remove number and method
Browse files Browse the repository at this point in the history
Those are being removed from the upstream API. `10 / replace` are the defaults anyway.

Aside: `method` was never correct, it should have been `append: false` for `replace`.

See WordPress/two-factor#514
  • Loading branch information
iandunn committed Feb 9, 2023
1 parent 784eb58 commit 63ce3db
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions settings/src/components/backup-codes.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ function Setup( { setRegenerating } ) {
method: 'POST',
data: {
user_id: userRecord.record.id,
method: 'replace',
number: 10,
enable_provider: true,
}
} );
Expand Down

0 comments on commit 63ce3db

Please sign in to comment.