Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy to clipboard #157

Merged
merged 1 commit into from
Oct 19, 2023
Merged

Copy to clipboard #157

merged 1 commit into from
Oct 19, 2023

Conversation

jj-so
Copy link
Contributor

@jj-so jj-so commented Oct 18, 2023

add COPY TO CLIPBOARD Button for ONE TIME PASSWORD

@jj-so jj-so linked an issue Oct 18, 2023 that may be closed by this pull request
Copy link
Member

@robin-nitrokey robin-nitrokey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it really make sense to clear the clipboard if the OTP times out? Most implementations will still accept the OTP for at least one time window after it expired. So being able to paste the OTP after it expired improves usability. Also, contrary to passwords, accidentally pasting an OTP somewhere it does not belong does not do much harm, so I think there is no strong need for clearing it. What do you think?

@daringer
Copy link
Collaborator

Jip, would also second your thought @robin-nitrokey - generally an OTP is not a secret and can stay forever in the clipboard - once we do this for passwords the story is different I would say - so we need this functionality anyways, I would just not apply it in this very case here.

@daringer
Copy link
Collaborator

daringer commented Oct 19, 2023

perfect! lgtm!
now please squash down the commits to one - and then feel free to merge 👍

add Copy to Clipboard
	modified:   nitrokeyapp/secrets_tab/__init__.py

remove clear the clipboard
	modified:   nitrokeyapp/secrets_tab/__init__.py

    squash 890773f add Copy to Clipboard 	modified:   nitrokeyapp/secrets_tab/__init__.py
    squash 015ec44 remove clear the clipboard 	modified:   nitrokeyapp/secrets_tab/__init__.py
	modified:   nitrokeyapp/secrets_tab/__init__.py
	modified:   nitrokeyapp/ui/secrets_tab.ui
@jj-so jj-so merged commit 38d809e into main Oct 19, 2023
8 checks passed
@jj-so jj-so deleted the copyToClipboard branch October 19, 2023 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

secrets: Copy OTP to clipboard
3 participants