aboutsummaryrefslogtreecommitdiff
path: root/examples/auth.go
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2020-10-21 17:38:58 -0400
committerAdnan Maolood <[email protected]>2020-10-21 17:38:58 -0400
commit8c4c00b31a4d114f0beff666c2760f4aebab6843 (patch)
tree66c36eb114b9ef189ddec946cd0eba2ebb6ec167 /examples/auth.go
parentRefactor Input and SensitiveInput functions (diff)
downloadgo-gemini-8c4c00b31a4d114f0beff666c2760f4aebab6843.tar.xz
go-gemini-8c4c00b31a4d114f0beff666c2760f4aebab6843.zip
examples/auth: Use sensitive input for passwords
Diffstat (limited to 'examples/auth.go')
-rw-r--r--examples/auth.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/auth.go b/examples/auth.go
index a0af829..7803fe7 100644
--- a/examples/auth.go
+++ b/examples/auth.go
@@ -84,7 +84,7 @@ func loginPassword(w *gmi.ResponseWriter, r *gmi.Request) {
return
}
- password, ok := gmi.Input(w, r, "Password")
+ password, ok := gmi.SensitiveInput(w, r, "Password")
if !ok {
return
}