Remove log output and updated comment
This commit is contained in:
@@ -41,6 +41,7 @@ func Login(db *sql.DB) http.HandlerFunc {
|
||||
username := r.FormValue("username")
|
||||
password := r.FormValue("password")
|
||||
|
||||
// ToDo: this outputs password in clear text remove or obscure!
|
||||
logging.Info("🔐 Login attempt - Username: %s, Password: %s", username, password)
|
||||
|
||||
user := storage.GetUserByUsername(db, username)
|
||||
@@ -51,7 +52,6 @@ func Login(db *sql.DB) http.HandlerFunc {
|
||||
session, _ := httpHelpers.GetSession(w, r)
|
||||
session.Values["flash"] = "Invalid username or password."
|
||||
session.Save(r, w)
|
||||
log.Printf("login did it")
|
||||
http.Redirect(w, r, "/account/login", http.StatusSeeOther)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user