2fast-team / 2fast

Two-Factor Authenticator Supporting TOTP (Windows 10 & Android, iOS, Linux and macOS App)
https://2fast-app.de
GNU General Public License v3.0
393 stars 42 forks source link

Cannot copy 2Fast QR code to clipboard with screenshot tool or scan with 1Passsword #119

Closed JasonSanDiego closed 4 months ago

JasonSanDiego commented 6 months ago

Describe the bug

When attempting to transfer a TOTP entry into 1Password, I'm unable to use any screen capture tool to get the QR code into the clipboard. The 2Fast screen always turns black.

Steps to Reproduce

Steps to reproduce the behavior:

  1. In Windows 11, installed via app store
  2. Click three dots for an entry in 2Fast
  3. Click on Display QR code
  4. In 1Password, create a new entry; select one-time password as type; click Scan QR code from clipboard or screen
  5. After a few moments, app shows QR code detection failed.
  6. Press Print Screen on keyboard; Win11 snipping tool appears
  7. 2Fast screen goes black

Same behavior when using another tool like Greenshot. This seems like maybe it's a security feature, but what is it really protecting against? People are rarely going to be showing the QR code unless it's needed.

Expected behavior

Be able to copy 2Fast into clipboard for "scanning" by 1Password. Or, provide the alphanumeric token that's needed to manually set up TOTP.

Screenshots

image

Environment

App Version(s):

Windows 10/11 Build Number:

jp-weber commented 6 months ago

This is a security function that serves in particular to ensure that the generated codes cannot be recorded by third-party software. The generation of QR codes is intended for smartphones, as the mobile application is still under development.

However, there is a temporary way to deactivate the security function: https://github.com/2fast-team/2fast/wiki/Disable-the-screen-capture-protection-(not-permanent)