mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-23 07:19:15 +00:00
Allow a function for the :secret in a plstore
* lisp/auth-source.el (auth-source-plstore-search): If the :secret value is a function, call it on plist to obtain the real password.
This commit is contained in:
parent
f8082a5cca
commit
90ce042154
@ -2073,7 +2073,9 @@ entries for git.gnus.org:
|
||||
(setcar
|
||||
(cdr secret)
|
||||
(let ((v (car (cdr secret))))
|
||||
(lambda () v))))
|
||||
(if (functionp v)
|
||||
(lambda () (funcall v plist))
|
||||
(lambda () v)))))
|
||||
plist))
|
||||
items))
|
||||
;; ensure each item has each key in `returned-keys'
|
||||
|
Loading…
Reference in New Issue
Block a user