[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/base32 32515e59da 052/103: totp-update-token-notification:
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/base32 32515e59da 052/103: totp-update-token-notification: add docstring |
Date: |
Sat, 10 Feb 2024 13:00:07 -0500 (EST) |
branch: elpa/base32
commit 32515e59da82d9de6c6cdd4f641c318187e89f94
Author: Vivek Das Mohapatra <vivek@collabora.co.uk>
Commit: Vivek Das Mohapatra <vivek@collabora.co.uk>
totp-update-token-notification: add docstring
---
totp-auth.el | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/totp-auth.el b/totp-auth.el
index ca1b308b39..ab69d89209 100644
--- a/totp-auth.el
+++ b/totp-auth.el
@@ -650,6 +650,11 @@ then wait until it is time to renew the token before doing
anything."
(notifications-close-notification id)))
(defun totp-update-token-notification (id label secret)
+ "Update a notification displaying a TOTP token.
+ID is the freedesktop notifications id (an unsigned 32 but integer).
+LABEL is the descriptive label of the OTP secret.
+SECRET is a suitable secret usable by ‘totp-generate-otp’.
+Usually called from a timer set by ‘totp-display-token-notification’."
(let (otp text ttl)
(setq otp (totp-generate-otp secret)
ttl (nth 1 otp)
- [nongnu] elpa/base32 cf6483b7fa 030/103: Update docstrings and comments for checkdoc compliance., (continued)
- [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, 2024/02/10
- [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 <=
- [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
- [nongnu] elpa/base32 5065525032 024/103: Update docstrings and readme, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 1c9bc087ba 039/103: totp-auto-copy-password: improve docstring and fix defcustom typos, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 a066bd453f 029/103: Remove totp-minimum-ui-grace which we're not using after all, ELPA Syncer, 2024/02/10