diff options
author | Bwko <bouwko@gmail.com> | 2017-01-25 08:23:20 +0100 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-01-25 15:23:20 +0800 |
commit | 634ac9c5afd3f8aa8a5c72a2698f33e10e8e6b5d (patch) | |
tree | b359bbf7988ccc230af7e256bbd4aac2bffa96bd /modules | |
parent | 8555e888d8690df718b1673b8409a29d05770cf4 (diff) | |
download | gitea-634ac9c5afd3f8aa8a5c72a2698f33e10e8e6b5d.tar.gz gitea-634ac9c5afd3f8aa8a5c72a2698f33e10e8e6b5d.zip |
Update Website binding MaxSize to 255 (#722)
Diffstat (limited to 'modules')
-rw-r--r-- | modules/auth/admin.go | 2 | ||||
-rw-r--r-- | modules/auth/org.go | 2 | ||||
-rw-r--r-- | modules/auth/repo_form.go | 6 | ||||
-rw-r--r-- | modules/auth/user_form.go | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/modules/auth/admin.go b/modules/auth/admin.go index 76b2bd0c89..68bc4f3941 100644 --- a/modules/auth/admin.go +++ b/modules/auth/admin.go @@ -32,7 +32,7 @@ type AdminEditUserForm struct { FullName string `binding:"MaxSize(100)"` Email string `binding:"Required;Email;MaxSize(254)"` Password string `binding:"MaxSize(255)"` - Website string `binding:"MaxSize(50)"` + Website string `binding:"Url;MaxSize(255)"` Location string `binding:"MaxSize(50)"` MaxRepoCreation int Active bool diff --git a/modules/auth/org.go b/modules/auth/org.go index e15cba0f9f..26740f8a25 100644 --- a/modules/auth/org.go +++ b/modules/auth/org.go @@ -31,7 +31,7 @@ type UpdateOrgSettingForm struct { Name string `binding:"Required;AlphaDashDot;MaxSize(35)" locale:"org.org_name_holder"` FullName string `binding:"MaxSize(100)"` Description string `binding:"MaxSize(255)"` - Website string `binding:"Url;MaxSize(100)"` + Website string `binding:"Url;MaxSize(255)"` Location string `binding:"MaxSize(50)"` MaxRepoCreation int } diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go index dda1f9d252..82018ea0ff 100644 --- a/modules/auth/repo_form.go +++ b/modules/auth/repo_form.go @@ -87,7 +87,7 @@ func (f MigrateRepoForm) ParseRemoteAddr(user *models.User) (string, error) { type RepoSettingForm struct { RepoName string `binding:"Required;AlphaDashDot;MaxSize(100)"` Description string `binding:"MaxSize(255)"` - Website string `binding:"Url;MaxSize(100)"` + Website string `binding:"Url;MaxSize(255)"` Branch string Interval int MirrorAddress string @@ -267,7 +267,7 @@ type NewReleaseForm struct { Content string Draft string Prerelease bool - Files []string + Files []string } // Validate valideates the fields @@ -281,7 +281,7 @@ type EditReleaseForm struct { Content string `form:"content"` Draft string `form:"draft"` Prerelease bool `form:"prerelease"` - Files []string + Files []string } // Validate valideates the fields diff --git a/modules/auth/user_form.go b/modules/auth/user_form.go index 0f083a2e00..e2c45a21e9 100644 --- a/modules/auth/user_form.go +++ b/modules/auth/user_form.go @@ -103,7 +103,7 @@ type UpdateProfileForm struct { FullName string `binding:"MaxSize(100)"` Email string `binding:"Required;Email;MaxSize(254)"` KeepEmailPrivate bool - Website string `binding:"Url;MaxSize(100)"` + Website string `binding:"Url;MaxSize(255)"` Location string `binding:"MaxSize(50)"` } |