From d167c8460534b7ef136cc082821f82b54afb6243 Mon Sep 17 00:00:00 2001 From: Andrea Fazzi Date: Wed, 7 Dec 2022 14:59:08 +0100 Subject: [PATCH] Remove schema ignore tag for captcha from School struct --- orm/school.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/orm/school.go b/orm/school.go index cc99d7b6..088390d7 100644 --- a/orm/school.go +++ b/orm/school.go @@ -2,6 +2,7 @@ package orm import ( "fmt" + "log" "net/http" "os" "strings" @@ -69,8 +70,8 @@ type School struct { SelectedRegion map[uint]string `gorm:"-"` AllRegions []*Region `gorm:"-"` - CaptchaID string `gorm:"-" schema:"-"` - CaptchaSolution string `gorm:"-" schema:"-"` + CaptchaID string `gorm:"-"` + CaptchaSolution string `gorm:"-"` mailSender *mail.MailSender } @@ -196,6 +197,7 @@ func (model *School) Create(db *Database, args map[string]string, w http.Respons school := new(School) err := renderer.Decode(school, r) if err != nil { + log.Println("Captcha", r.FormValue("CaptchaID"), r.FormValue("CaptchaSolution")) return nil, err }