[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/base32 df9e83880d 044/103: totp-notification-action "copy"
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/base32 df9e83880d 044/103: totp-notification-action "copy" should always copy the token |
Date: |
Sat, 10 Feb 2024 13:00:05 -0500 (EST) |
branch: elpa/base32
commit df9e83880d6d87bfff32c0b24f4a46953b9f8736
Author: Vivek Das Mohapatra <vivek@collabora.co.uk>
Commit: Vivek Das Mohapatra <vivek@collabora.co.uk>
totp-notification-action "copy" should always copy the token
Since the "copy" action of our freedesktop notification is
always an explicit user action it should always copy the
current token, even if totp-auto-copy-password has been set
to nil.
---
totp-auth.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/totp-auth.el b/totp-auth.el
index 68352dd867..9c2eba22e3 100644
--- a/totp-auth.el
+++ b/totp-auth.el
@@ -641,7 +641,8 @@ then wait until it is time to renew the token before doing
anything."
(sit-for ttl)
(setq otp (totp-generate-otp secret)))
(setq token (nth 0 otp))
- (totp-update-paste-buffers nil token))
+ (let ((totp-auto-copy-password (or totp-auto-copy-password '(PRIMARY))))
+ (totp-update-paste-buffers nil token)))
(notifications-close-notification id)))
(defun totp-update-token-notification (id label secret)
- [nongnu] elpa/base32 8925afa85b 027/103: Clarify that totp-alt-xdg-schemas is used only to read secrets, (continued)
- [nongnu] elpa/base32 8925afa85b 027/103: Clarify that totp-alt-xdg-schemas is used only to read secrets, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 982c418361 026/103: Docstring style trivia, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 0741c352da 031/103: Add .gitignore, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 cf6483b7fa 030/103: Update docstrings and comments for checkdoc compliance., ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 569f5268ca 038/103: Remove some old (commented out) debug code, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 dbb395f298 046/103: Fix some compilation warnings, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 480dacaf75 043/103: Implement freedesktop notifications based UI, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 1c5810c853 057/103: Continue the Great Renaming into totp-auth-…, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 e113a73b9b 037/103: Add more details to the commentary and README, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 5ea9f39645 045/103: Update commentary to describe the new UI options, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 df9e83880d 044/103: totp-notification-action "copy" should always copy the token,
ELPA Syncer <=
- [nongnu] elpa/base32 e18e58fd96 042/103: totp-truncate-hash: typo in docstring, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 11819b793b 051/103: Suppress a docstring-related byte-compile error, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 32515e59da 052/103: totp-update-token-notification: add docstring, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 2b6c12528c 065/103: Mention Google Authenticator in a couple more places, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 676e64115d 048/103: Test should target totp-auth.el after the rename, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 522bb9d85f 056/103: Another linter opinion accommodated, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 93bfede7bf 060/103: More Great Renaming - move hmac to totp-auth-hmac, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 72c09337eb 062/103: Supress misleading warnings about use of ’lsh’, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 7023bb8697 049/103: Suppress some more (spurious) byte-compile errors, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 56b160f436 005/103: Handle .netrc style backends containing otpauth url secrets, ELPA Syncer, 2024/02/10