[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/base32 da1498e54d 102/103: Handle empty user strings bette
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/base32 da1498e54d 102/103: Handle empty user strings better when creating labels for secrets |
Date: |
Sat, 10 Feb 2024 13:00:14 -0500 (EST) |
branch: elpa/base32
commit da1498e54df8802efe2174c0e988c23fea49fc79
Author: Vivek Das Mohapatra <vivek@collabora.com>
Commit: Vivek Das Mohapatra <vivek@collabora.com>
Handle empty user strings better when creating labels for secrets
---
totp-auth.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/totp-auth.el b/totp-auth.el
index a8933d51ee..6a5088899d 100644
--- a/totp-auth.el
+++ b/totp-auth.el
@@ -415,9 +415,9 @@ The label will be based on its user and service fields."
(setq user (cdr (assq :user secret))
srv-host (cdr (or (assq :service secret)
(assq :host secret))))
- (if (and user srv-host)
+ (if (and user (> (length user) 0) srv-host)
(concat user "@" srv-host)
- (or user srv-host "nobody@unknown"))))
+ (or srv-host user "nobody@unknown"))))
(defun totp-auth-secret-make-label-and-wrapper (secret &optional label)
"Take a ‘totp-auth-unwrap-otp-blob’ SECRET and make a LABEL and otpauth URL.
- [nongnu] elpa/base32 1c001795de 083/103: Preliminary otpauth-migration URL export support, (continued)
- [nongnu] elpa/base32 1c001795de 083/103: Preliminary otpauth-migration URL export support, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 0d7a4e1c9d 087/103: Check for availability of QR code import command, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 3bd26611c1 088/103: Don't add newlines in long otpauth-migration URL data blobs, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 043ce25969 089/103: Add text-file export support, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 4a32e61634 090/103: QR code export, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 967a8375e8 094/103: Add a require for epa-hook in totp-auth-interop, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 6f138d3eaa 099/103: Clean up the flow of totp-auth-sources, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 7e7e43535e 097/103: Update references to old command names in the commentary section, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 d520096a5d 101/103: Fix stale references in docstrings, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 15e19abec5 096/103: Update README files, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 da1498e54d 102/103: Handle empty user strings better when creating labels for secrets,
ELPA Syncer <=
- [nongnu] elpa/base32 d550a728be 066/103: Rename totp-interop.el to totp-auth-interop.el, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 908d2d6aea 076/103: Fix overlong docstring line, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 33a93352a9 086/103: Trivia: docstring symbol markup converted to new style, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 99a81b3634 034/103: Trying out name diversion on packaging as totp is taken., ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 a97fde3c60 061/103: Prepare to ship base32 as a separate package, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 18c813779a 064/103: Mention Google Authenticator in comments, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 046998aa35 095/103: Automate byte compilation & running tests with no site or user config, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 ccf4584caa 041/103: totp-update-token-display: fix intermitten token display bug, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 d3696bbe2d 047/103: Squash a deprecated function byte-compile warning, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 5557b7714a 091/103: Squash obsolete function warnings, maintain backwards compatibility, ELPA Syncer, 2024/02/10