summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Steinert <[email protected]>2015-12-04 09:21:17 -0600
committerMichael Steinert <[email protected]>2015-12-04 09:21:17 -0600
commit4314ed7dcc2ce5728603fa8c8385510fa74829fc (patch)
tree3d429cacf4d675a0dfd74746daf97676e2dd3bf7
parenta245f1098c428f046096700d36291689f7037bc4 (diff)
Update example code
-rw-r--r--example/example.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/example.go b/example/example.go
index 38d0627..82f9b57 100644
--- a/example/example.go
+++ b/example/example.go
@@ -26,7 +26,7 @@ import (
"log"
"os"
- "code.google.com/p/gopass"
+ "github.com/bgentry/speakeasy"
"github.com/msteinert/pam"
)
@@ -34,7 +34,7 @@ func main() {
t, err := pam.StartFunc("", "", func(s pam.Style, msg string) (string, error) {
switch s {
case pam.PromptEchoOff:
- return gopass.GetPass(msg)
+ return speakeasy.Ask(msg)
case pam.PromptEchoOn:
fmt.Print(msg + " ")
input, err := bufio.NewReader(os.Stdin).ReadString('\n')