Improve result of `auth-source-search' in Tramp
* lisp/net/tramp.el (tramp-read-passwd): Require :secret and :user in result of `auth-source-search'.
This commit is contained in:
parent
e2fd20683a
commit
f5543ffcf5
1 changed files with 4 additions and 1 deletions
|
@ -4160,7 +4160,10 @@ Invokes `password-read' if available, `read-passwd' else."
|
|||
:max 1
|
||||
:user (or tramp-current-user t)
|
||||
:host tramp-current-host
|
||||
:port tramp-current-method)
|
||||
:port tramp-current-method
|
||||
:require
|
||||
(cons
|
||||
:secret (and tramp-current-user '(:user))))
|
||||
auth-passwd (plist-get
|
||||
(nth 0 auth-info) :secret)
|
||||
auth-passwd (if (functionp auth-passwd)
|
||||
|
|
Loading…
Add table
Reference in a new issue