fix username in login field -- should be 'username' not 'name'
This commit is contained in:
@@ -15,7 +15,7 @@ func Login(w http.ResponseWriter, r *http.Request) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
username := r.FormValue("name")
|
username := r.FormValue("username")
|
||||||
password := r.FormValue("password")
|
password := r.FormValue("password")
|
||||||
if username == "" || password == "" {
|
if username == "" || password == "" {
|
||||||
http.Error(w, "Username and password cannot be empty", http.StatusBadRequest)
|
http.Error(w, "Username and password cannot be empty", http.StatusBadRequest)
|
||||||
|
Reference in New Issue
Block a user