diff --git a/server/routing/register.go b/server/routing/register.go index 1fbb984..c043606 100644 --- a/server/routing/register.go +++ b/server/routing/register.go @@ -50,14 +50,14 @@ func (ctx *Context) RegisterPost(w http.ResponseWriter, r *http.Request) { ctx.RedirectWithFlash(w, r, "/", "successful_registration", true) } -type jsonParams struct { +type registerJsonParams struct { Username string NewPassword string ConfirmPassword string } func (ctx *Context) RegisterPostJson(w http.ResponseWriter, r *http.Request) { - var params jsonParams + var params registerJsonParams err := decodeJsonParams(r, ¶ms) if err != nil { writeGeneralError(w, "Failed to decode json params: "+err.Error(), http.StatusBadRequest)