1
0
Fork 0
forked from forgejo/forgejo

Add update user profile back end, add new gitignore and license, add template data to public profile page

This commit is contained in:
Unknown 2014-03-13 03:39:18 -04:00
parent adedd9181c
commit 57bc2d1ca0
13 changed files with 133 additions and 21 deletions

View file

@ -90,11 +90,6 @@ func (f *LogInForm) Validate(errors *binding.Errors, req *http.Request, context
validate(errors, data, f)
}
type FeedsForm struct {
UserId int64 `form:"userid" binding:"Required"`
Offset int64 `form:"offset"`
}
func getMinMaxSize(field reflect.StructField) string {
for _, rule := range strings.Split(field.Tag.Get("binding"), ";") {
if strings.HasPrefix(rule, "MinSize(") || strings.HasPrefix(rule, "MaxSize(") {