fix(router,users): correct username form value name on error

This commit is contained in:
Guz
2025-06-06 16:34:16 -03:00
parent 56e2214311
commit 149823a5fc

View File

@@ -47,7 +47,7 @@ func (c userController) login(w http.ResponseWriter, r *http.Request) {
user, passwd := r.FormValue("username"), r.FormValue("password")
if user == "" {
exception.BadRequest(errors.New(`missing "user" form value`)).ServeHTTP(w, r)
exception.BadRequest(errors.New(`missing "username" form value`)).ServeHTTP(w, r)
return
}
if passwd == "" {