From 32ebadccd18fb6d25d4bb45bfb5db141bf6e423e Mon Sep 17 00:00:00 2001 From: Ikuyo Date: Tue, 23 Jul 2024 08:18:20 +0500 Subject: [PATCH] [v8.0/forgejo] Reserve `devtest` username **Backport: #4638** This PR reserves the devtest username. This is because /devtest is used for testing various elements and layouts of the UI, and creating a user or organisation with that name may cause problems and conflicts if the RUN_MODE is set to dev --- models/user/user.go | 1 + tests/integration/user_test.go | 1 + 2 files changed, 2 insertions(+) diff --git a/models/user/user.go b/models/user/user.go index 6d8c5fa2b5..4dae957485 100644 --- a/models/user/user.go +++ b/models/user/user.go @@ -558,6 +558,7 @@ var ( "captcha", "commits", "debug", + "devtest", "error", "explore", "favicon.ico", diff --git a/tests/integration/user_test.go b/tests/integration/user_test.go index 02cc9b51cc..d9f553444f 100644 --- a/tests/integration/user_test.go +++ b/tests/integration/user_test.go @@ -110,6 +110,7 @@ func TestRenameReservedUsername(t *testing.T) { "captcha", "commits", "debug", + "devtest", "error", "explore", "favicon.ico",