Skip to content

Conversation

iandunn
Copy link
Member

@iandunn iandunn commented Feb 9, 2023

The internal function accepts a param for flexibility, but currently there's no use case for letting the user choose how many they want.

This should be included in the same release as #504, since it was introduced there.

Props @xknown
See WordPress/wporg-two-factor#3

@iandunn iandunn added this to the 0.8.0 milestone Feb 9, 2023
@iandunn iandunn requested a review from dd32 February 9, 2023 18:16
@iandunn iandunn self-assigned this Feb 9, 2023
@iandunn
Copy link
Member Author

iandunn commented Feb 9, 2023

I'll fix the tests.

We should probably remove the append ability as well, I'll look into that.

iandunn added a commit to WordPress/wporg-two-factor that referenced this pull request Feb 9, 2023
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
The internal function accepts a param for flexibility, but currently there's no use case for letting the user choose how many they want.
@iandunn iandunn merged commit 88634af into master Feb 10, 2023
@iandunn iandunn deleted the rest-10-codes branch February 10, 2023 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants