This repository was archived by the owner on May 18, 2021. It is now read-only.
File tree Expand file treeCollapse file tree 1 file changed+4
-4
lines changedFilter options
+4
-4
lines changed Original file line number Diff line number Diff line change
@@ -180,12 +180,12 @@ func (d *DuoClient) ChallengeU2f(verificationHost string) (err error) {
180
180
log.Printf("Authentication succeeded, continuing")
181
181
} else if _, ok := err.(*u2fhost.TestOfUserPresenceRequiredError); ok {
182
182
if !prompted {
183
-
fmt.Println("Touch the flashing U2F device to authenticate...")
184
-
fmt.Println()
183
+
fmt.Fprintln(os.Stderr, "Touch the flashing U2F device to authenticate...")
184
+
fmt.Fprintln(os.Stderr)
185
185
}
186
186
prompted = true
187
187
} else {
188
-
fmt.Printf("Got status response %#v\n", err)
188
+
log.Printf("Got status response %#v\n", err)
189
189
break
190
190
}
191
191
}
@@ -381,7 +381,7 @@ func (d *DuoClient) DoPrompt(sid string) (txid string, err error) {
381
381
// I'm not certain that belongs here
382
382
if d.Device == "token" {
383
383
reader := bufio.NewReader(os.Stdin)
384
-
fmt.Print("Press button on your hardware token: ")
384
+
fmt.Fprintln(os.Stderr, "Press button on your hardware token: ")
385
385
text, err := reader.ReadString('\n')
386
386
if err != nil {
387
387
return "", fmt.Errorf("Failed to read the stdin for hardware token auth: %s", err)
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4