diff options
Diffstat (limited to 'pkg/form/auth.go')
-rw-r--r-- | pkg/form/auth.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/form/auth.go b/pkg/form/auth.go index b2ee3ae8..65f5eac0 100644 --- a/pkg/form/auth.go +++ b/pkg/form/auth.go @@ -11,7 +11,7 @@ import ( type Authentication struct { ID int64 - Type int `binding:"Range(2,5)"` + Type int `binding:"Range(2,6)"` Name string `binding:"Required;MaxSize(30)"` Host string Port int @@ -41,6 +41,7 @@ type Authentication struct { TLS bool SkipVerify bool PAMServiceName string + GithubApiEndpoint string `binding:Required;Url` } func (f *Authentication) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors { |