// Copyright 2014 The Gogs Authors. All rights reserved.// Use of this source code is governed by a MIT-style// license that can be found in the LICENSE file.packageauthimport("github.com/Unknwon/macaron""github.com/macaron-contrib/binding")typeAdminEditUserFormstruct{Emailstring`form:"email" binding:"Required;Email;MaxSize(50)"`Passwdstring`form:"password"`Websitestring`form:"website" binding:"MaxSize(50)"`Locationstring`form:"location" binding:"MaxSize(50)"`Avatarstring`form:"avatar" binding:"Required;Email;MaxSize(50)"`Activebool`form:"active"`Adminbool`form:"admin"`AllowGitHookbool`form:"allow_git_hook"`LoginTypeint`form:"login_type"`}func(f*AdminEditUserForm)Validate(ctx*macaron.Context,errsbinding.Errors)binding.Errors{returnvalidate(errs,ctx.Data,f,ctx.Locale)}