emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/base32 ac5b439624 075/103: Document an otpauth-migration U


From: ELPA Syncer
Subject: [nongnu] elpa/base32 ac5b439624 075/103: Document an otpauth-migration URL quirk in a comment
Date: Sat, 10 Feb 2024 13:00:10 -0500 (EST)

branch: elpa/base32
commit ac5b439624fcf2b7df62d03cd9ef0100c2bfce4d
Author: Vivek Das Mohapatra <vivek@collabora.com>
Commit: Vivek Das Mohapatra <vivek@collabora.com>

    Document an otpauth-migration URL quirk in a comment
---
 totp-auth-interop.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/totp-auth-interop.el b/totp-auth-interop.el
index ff198d296f..dec1af14f4 100644
--- a/totp-auth-interop.el
+++ b/totp-auth-interop.el
@@ -111,6 +111,8 @@ The cell(s) are suitable for use in the return value of 
‘totp-auth-unwrap-otp-
           ((eq key :digits) (when (numberp val)
                               (setq val (+ (* val 2) 4))
                               (cons :digits (if (memq val '(6 8)) val 6))))
+          ;; field #2 is either a "service:user" string or just a "service" one
+          ;; we have to inspect the contents and guess.
           ((consp key)      (if (and (stringp val)
                                      (string-match "^\\(.+\\)?:\\(.+\\)" val))
                                 (list (cons (car key) (match-string 1 val))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]