mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-27 09:13:53 +01:00
Add more ToDos
This commit is contained in:
parent
508b4deac8
commit
288dda282c
1 changed files with 3 additions and 1 deletions
|
@ -192,13 +192,15 @@ func SettingsPost(ctx *context.Context) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Create Federated Repo Structs & commit to DB
|
||||||
|
// ToDo: Implement in federation_service.go
|
||||||
|
|
||||||
// ToDo: Use Federated Repo Struct & Update Federated Repo Table
|
// ToDo: Use Federated Repo Struct & Update Federated Repo Table
|
||||||
// TODO: move as much functions to some kind of service in order to keep controller clean an simple
|
// TODO: move as much functions to some kind of service in order to keep controller clean an simple
|
||||||
switch {
|
switch {
|
||||||
// Allow clearing the field
|
// Allow clearing the field
|
||||||
case form.FederationRepos == "":
|
case form.FederationRepos == "":
|
||||||
repo.FederationRepos = ""
|
repo.FederationRepos = ""
|
||||||
|
|
||||||
// Validate
|
// Validate
|
||||||
case !validation.IsOfValidLength(form.FederationRepos): // ToDo: Use for public testing only. In production we might need longer strings.
|
case !validation.IsOfValidLength(form.FederationRepos): // ToDo: Use for public testing only. In production we might need longer strings.
|
||||||
ctx.Data["ERR_FederationRepos"] = true
|
ctx.Data["ERR_FederationRepos"] = true
|
||||||
|
|
Loading…
Reference in a new issue