summaryrefslogtreecommitdiffstats
path: root/modules/auth/auth_form.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/auth/auth_form.go')
-rw-r--r--modules/auth/auth_form.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/auth/auth_form.go b/modules/auth/auth_form.go
index 9454d85693..78ba2b8997 100644
--- a/modules/auth/auth_form.go
+++ b/modules/auth/auth_form.go
@@ -9,6 +9,7 @@ import (
"gopkg.in/macaron.v1"
)
+// AuthenticationForm form for authentication
type AuthenticationForm struct {
ID int64
Type int `binding:"Range(2,5)"`
@@ -37,6 +38,7 @@ type AuthenticationForm struct {
PAMServiceName string
}
+// Validate validates fields
func (f *AuthenticationForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
return validate(errs, ctx.Data, f, ctx.Locale)
}