Update user.go
This commit is contained in:
parent
dffd67a9fe
commit
f6cf82fcb3
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ func loginHandler(h handler) {
|
|||
}
|
||||
|
||||
func loginPostHandler(h handler) {
|
||||
user := h.r.FormValue("user")
|
||||
user := strings.TrimSpace(h.r.FormValue("user"))
|
||||
pass := h.r.FormValue("pass")
|
||||
if h.db.ValidPassword(user, pass) {
|
||||
log.Info("User ", user, " log in")
|
||||
|
|
Reference in a new issue