aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Hurst <ark@mansus.space>2023-01-15 02:30:27 +0100
committerJulian Hurst <ark@mansus.space>2023-01-15 02:30:27 +0100
commit3886b3a61205be2ba9654061793f94896f6761f5 (patch)
tree88a256d5effd1012394a8205922ab737afa0aa6a
parent813a6071514b145ae63305aea52b5c8f6b526a4e (diff)
downloaddocspace-3886b3a61205be2ba9654061793f94896f6761f5.tar.gz
Reduce verbosity of error message on login fail
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 42377a3..bb47d27 100644
--- a/main.go
+++ b/main.go
@@ -328,7 +328,7 @@ func login(w http.ResponseWriter, r *http.Request) {
pass := r.FormValue("pass")
user, err := CheckUserPass(db, User{-1, u, "", pass, false})
if err != nil {
- sendFlash(w, r, "error", err.Error())
+ sendFlash(w, r, "error", fmt.Sprintf("Incorrect login credentials"))
http.Redirect(w, r, "/login", http.StatusSeeOther)
return
}