buttercup / buttercup-mobile

:iphone: React-Native mobile application for Buttercup
https://buttercup.pw
GNU General Public License v3.0
392 stars 69 forks source link

[iOS] When tapping on OTP code, wrong value is copied #281

Closed casasfernando closed 2 years ago

casasfernando commented 2 years ago

Not sure if this is expected/by design or not so I decided to open an issue just in case. When tapping on an OTP code, wrong value is copied. Instead of copying the 6 digit code value to the clipboard, the OTP URI value is copied instead.

Step to reproduce:

  1. Open Buttercup
  2. Unlock a vault that contains OTP codes
  3. Tap on GROUPS
  4. Browse for an item that contains an OTP code
  5. Tap on an OTP code

Expected result: the current six digit OTP code value is copied to the clipboard (same as if you tap on the username or password field) Current result: the OTP URI for the item is copied to the clipboard instead of the current six digit OTP code

On the other hand if I tap on CODES in the bottom bar and then I tap on any item from the OTP codes list, the current six digit OTP code is copied, as expected.

Thanks.

iOS version: 15.2 Buttercup version: 2.0.1 Buttercup vault storage: webdav