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
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue