File tree 2 files changed +26
-10
lines changed
2 files changed +26
-10
lines changed Original file line number Diff line number Diff line change @@ -75,23 +75,41 @@ func TestRenameReservedUsername(t *testing.T) {
75
75
defer prepareTestEnv (t )()
76
76
77
77
reservedUsernames := []string {
78
+ "." ,
79
+ ".." ,
80
+ ".well-known" ,
78
81
"admin" ,
79
82
"api" ,
83
+ "assets" ,
80
84
"attachments" ,
85
+ "avatar" ,
81
86
"avatars" ,
87
+ "captcha" ,
88
+ "commits" ,
89
+ "debug" ,
90
+ "error" ,
82
91
"explore" ,
83
- "help " ,
84
- "install " ,
92
+ "favicon.ico " ,
93
+ "ghost " ,
85
94
"issues" ,
86
95
"login" ,
96
+ "manifest.json" ,
87
97
"metrics" ,
98
+ "milestones" ,
99
+ "new" ,
88
100
"notifications" ,
89
101
"org" ,
90
102
"pulls" ,
103
+ "raw" ,
91
104
"repo" ,
92
- "template " ,
93
- "user " ,
105
+ "repo-avatars " ,
106
+ "robots.txt " ,
94
107
"search" ,
108
+ "serviceworker.js" ,
109
+ "ssh_info" ,
110
+ "swagger.v1.json" ,
111
+ "user" ,
112
+ "v2" ,
95
113
}
96
114
97
115
session := loginUser (t , "user2" )
Original file line number Diff line number Diff line change @@ -576,6 +576,7 @@ var (
576
576
"api" ,
577
577
"assets" ,
578
578
"attachments" ,
579
+ "avatar" ,
579
580
"avatars" ,
580
581
"captcha" ,
581
582
"commits" ,
@@ -584,26 +585,23 @@ var (
584
585
"explore" ,
585
586
"favicon.ico" ,
586
587
"ghost" ,
587
- "help" ,
588
- "install" ,
589
588
"issues" ,
590
- "less" ,
591
589
"login" ,
592
590
"manifest.json" ,
593
591
"metrics" ,
594
592
"milestones" ,
595
593
"new" ,
596
594
"notifications" ,
597
595
"org" ,
598
- "plugins" ,
599
596
"pulls" ,
600
597
"raw" ,
601
598
"repo" ,
599
+ "repo-avatars" ,
602
600
"robots.txt" ,
603
601
"search" ,
604
602
"serviceworker.js" ,
605
- "stars " ,
606
- "template " ,
603
+ "ssh_info " ,
604
+ "swagger.v1.json " ,
607
605
"user" ,
608
606
"v2" ,
609
607
}
You can’t perform that action at this time.
0 commit comments