From 2e803e10c0498f304eb07fb4a51f7553035bd77c Mon Sep 17 00:00:00 2001 From: erik Date: Wed, 20 Mar 2024 16:12:42 +0100 Subject: [PATCH] Do not use binding at this stage It wasn't clear how to utilize the "type" field in the .tmpl for our purposes. --- services/forms/repo_form.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/forms/repo_form.go b/services/forms/repo_form.go index da130353df..c74c1582d3 100644 --- a/services/forms/repo_form.go +++ b/services/forms/repo_form.go @@ -113,8 +113,8 @@ type RepoSettingForm struct { RepoName string `binding:"Required;AlphaDashDot;MaxSize(100)"` Description string `binding:"MaxSize(2048)"` Website string `binding:"ValidUrl;MaxSize(1024)"` - // ToDo: Do we need validation at this point? - FederationRepos string `binding:"ValidUrl;MaxSize(1024)"` + + FederationRepos string Interval string MirrorAddress string MirrorUsername string