From f4b397ece80bb87f56c2b5ff40e4a05f3970e343 Mon Sep 17 00:00:00 2001 From: oddlama Date: Tue, 12 Mar 2024 17:17:57 +0100 Subject: [PATCH] fix: disable forgejo auto registration to allow reviewing username and mail --- hosts/ward/guests/forgejo.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hosts/ward/guests/forgejo.nix b/hosts/ward/guests/forgejo.nix index 3f521ae..71a644c 100644 --- a/hosts/ward/guests/forgejo.nix +++ b/hosts/ward/guests/forgejo.nix @@ -93,12 +93,12 @@ in { services.forgejo = { enable = true; - appName = "Redlew Git"; # tungsten inert gas? # TODO db backups # dump.enable = true; lfs.enable = true; mailerPasswordFile = config.age.secrets.forgejo-mailer-password.path; settings = { + DEFAULT.APP_NAME = "Redlew Git"; # tungsten inert gas? actions = { ENABLED = true; DEFAULT_ACTIONS_URL = "github"; @@ -129,7 +129,10 @@ in { # with the existing account to link. ACCOUNT_LINKING = "login"; USERNAME = "nickname"; - ENABLE_AUTO_REGISTRATION = true; + # This does not mean that you cannot register via oauth, but just that there should + # be a confirmation dialog shown to the user before the account is actually created. + # This dialog allows changing user name and email address before creating the account. + ENABLE_AUTO_REGISTRATION = false; REGISTER_EMAIL_CONFIRM = false; UPDATE_AVATAR = true; };