Make request parser handle form-encoded content
This fixes a new signin bug
This commit is contained in:
parent
0ce3420792
commit
baaa3bff5b
2 changed files with 18 additions and 6 deletions
|
|
@ -12,8 +12,8 @@ import (
|
|||
)
|
||||
|
||||
type reqSignin struct {
|
||||
Password string `json:"password"`
|
||||
Username string `json:"username"`
|
||||
Password string `schema:"password"`
|
||||
Username string `schema:"username"`
|
||||
}
|
||||
|
||||
func postSignin(ctx context.Context, r *http.Request, req reqSignin) (string, *nhttp.ErrorWithStatus) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue