1
1
mirror of https://github.com/go-gitea/gitea synced 2025-10-31 11:28:24 +00:00

Make "/user/login" page redirect if the current user has signed in (#29583) (#29599)

Backport #29583
This commit is contained in:
wxiaoguang
2024-03-05 21:03:45 +08:00
committed by GitHub
parent 4ef7e496b8
commit 02df269d24
4 changed files with 65 additions and 12 deletions

View File

@@ -78,7 +78,7 @@ func assertPagesMetas(t *testing.T, expectedNames []string, metas any) {
func TestWiki(t *testing.T) {
unittest.PrepareTestEnv(t)
ctx, _ := contexttest.MockContext(t, "user2/repo1/wiki/?action=_pages")
ctx, _ := contexttest.MockContext(t, "user2/repo1/wiki")
ctx.SetParams("*", "Home")
contexttest.LoadRepo(t, ctx, 1)
Wiki(ctx)