aboutsummaryrefslogtreecommitdiff
path: root/pkg/form
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2018-12-18 16:46:50 -0500
committerUnknwon <u@gogs.io>2018-12-18 16:46:50 -0500
commit657ea2686fd076c4baacc5293694c94f97c4fec3 (patch)
tree172b201112c29b42799612f3c5ef26e49a58e95e /pkg/form
parent311df9c521f05cdca880152e73dbed47afb74cde (diff)
auth: coding style and glitches fixes for GitHub login source (#5340)
Diffstat (limited to 'pkg/form')
-rw-r--r--pkg/form/auth.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/form/auth.go b/pkg/form/auth.go
index 65f5eac0..47ecc813 100644
--- a/pkg/form/auth.go
+++ b/pkg/form/auth.go
@@ -41,7 +41,7 @@ type Authentication struct {
TLS bool
SkipVerify bool
PAMServiceName string
- GithubApiEndpoint string `binding:Required;Url`
+ GitHubAPIEndpoint string `form:"github_api_endpoint" binding:"Url"`
}
func (f *Authentication) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {