Skip to content

Commit

Permalink
Enable providers automatically when setting up
Browse files Browse the repository at this point in the history
This is explicitly needed now because of a recent change in the upstream pull request.
See WordPress/two-factor#504 (comment)
  • Loading branch information
iandunn committed Jan 26, 2023
1 parent 5fbbcea commit 33b02cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion settings/src/components/backup-codes.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ function Setup( { setRegenerating } ) {
data: {
user_id: userRecord.record.id,
method: 'replace',
number: 10
number: 10,
enable_provider: true,
}
} );

Expand Down
1 change: 1 addition & 0 deletions settings/src/components/totp.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ function Setup() {
user_id: userRecord.record.id,
key: secretKey,
code: verifyCode,
enable_provider: true,
},
} );

Expand Down

0 comments on commit 33b02cf

Please sign in to comment.