Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/auth/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion modules/auth/org.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
6 changes: 3 additions & 3 deletions modules/auth/repo_form.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -267,7 +267,7 @@ type NewReleaseForm struct {
Content string
Draft string
Prerelease bool
Files []string
Files []string
}

// Validate valideates the fields
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion modules/auth/user_form.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)"`
}

Expand Down