Disable extra prompt for list logins
This commit is contained in:
parent
fe64cc7807
commit
8b08d5841a
|
@ -97,16 +97,16 @@ func handleGetLoginCipher(request messages.IPCMessage, cfg *config.Config, vault
|
||||||
}
|
}
|
||||||
|
|
||||||
func handleListLoginsRequest(request messages.IPCMessage, cfg *config.Config, vault *vault.Vault, ctx *sockets.CallingContext) (response messages.IPCMessage, err error) {
|
func handleListLoginsRequest(request messages.IPCMessage, cfg *config.Config, vault *vault.Vault, ctx *sockets.CallingContext) (response messages.IPCMessage, err error) {
|
||||||
if approved, err := pinentry.GetApproval("Access Vault", fmt.Sprintf("%s on %s>%s>%s is trying access ALL CREDENTIALS", ctx.UserName, ctx.GrandParentProcessName, ctx.ParentProcessName, ctx.ProcessName)); err != nil || !approved {
|
// if approved, err := pinentry.GetApproval("Access Vault", fmt.Sprintf("%s on %s>%s>%s is trying access ALL CREDENTIALS", ctx.UserName, ctx.GrandParentProcessName, ctx.ParentProcessName, ctx.ProcessName)); err != nil || !approved {
|
||||||
response, err = messages.IPCMessageFromPayload(messages.ActionResponse{
|
// response, err = messages.IPCMessageFromPayload(messages.ActionResponse{
|
||||||
Success: false,
|
// Success: false,
|
||||||
Message: "not approved",
|
// Message: "not approved",
|
||||||
})
|
// })
|
||||||
if err != nil {
|
// if err != nil {
|
||||||
return messages.IPCMessage{}, err
|
// return messages.IPCMessage{}, err
|
||||||
}
|
// }
|
||||||
return response, nil
|
// return response, nil
|
||||||
}
|
// }
|
||||||
|
|
||||||
logins := vault.GetLogins()
|
logins := vault.GetLogins()
|
||||||
decryptedLoginCiphers := make([]messages.DecryptedLoginCipher, 0)
|
decryptedLoginCiphers := make([]messages.DecryptedLoginCipher, 0)
|
||||||
|
|
Loading…
Reference in New Issue