XcodesApp icon indicating copy to clipboard operation
XcodesApp copied to clipboard

Add support for pasting the entire 2FA code

Open alexaubry opened this issue 3 years ago • 0 comments

Goals

This PR adds support for pasting the entire 2FA code if the new string equals the length of the expected 2FA code. Currently, when pasting the 2FA code, only the last digit gets pasted.

Notes

I think it makes sense to have this behavior only if the user didn't enter any digit so that we can avoid any weird edge cases that could override their input, but let me know if you disagree.

Demo

https://user-images.githubusercontent.com/16192914/168834317-5358b584-261c-4f7f-93f3-0ededd350410.mov

alexaubry avatar May 17 '22 14:05 alexaubry