use crypto/rand
This commit is contained in:
parent
4f5abfbd70
commit
03e7b58b64
6 changed files with 44 additions and 26 deletions
|
|
@ -118,7 +118,7 @@ func (rs *AccountResource) list(w http.ResponseWriter, r *http.Request) {
|
|||
func (rs *AccountResource) create(w http.ResponseWriter, r *http.Request) {
|
||||
data := &accountRequest{}
|
||||
if err := render.Bind(r, data); err != nil {
|
||||
render.Respond(w, r, ErrInvalidRequest(err))
|
||||
render.Render(w, r, ErrInvalidRequest(err))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue