all repos — flounder @ aa245354146f6bc92ede1442e284055f4a98016a

A small site builder for the Gemini protocol

add log line on reset pw
alex wennerberg alex@alexwennerberg.com
Sun, 06 Dec 2020 12:03:36 -0800
commit

aa245354146f6bc92ede1442e284055f4a98016a

parent

4e07f8b93e95ef8ed5c05e9d771b290a7996915f

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M http.gohttp.go

@@ -605,6 +605,7 @@ _, err = DB.Exec("update user set password_hash = ? where username = ?", hashedPassword, user.Username)

if err != nil { panic(err) } + log.Printf("User %s reset password", user.Username) http.Redirect(w, r, "/me", http.StatusSeeOther) return } else {