mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-30 16:30:45 +00:00
Update RestrictedNames so users can't register a username that conflicts with routes
This commit is contained in:
parent
1b794c8508
commit
fa7d1fef2f
1 changed files with 16 additions and 5 deletions
|
@ -55,8 +55,6 @@ class RestrictedNames {
|
|||
"js",
|
||||
"localdomain",
|
||||
"localhost",
|
||||
"login",
|
||||
"logout",
|
||||
"mail",
|
||||
"mailer-daemon",
|
||||
"mailerdaemon",
|
||||
|
@ -108,8 +106,6 @@ class RestrictedNames {
|
|||
"tutorial",
|
||||
"tutorials",
|
||||
"usenet",
|
||||
"user",
|
||||
"users",
|
||||
"uucp",
|
||||
"webmaster",
|
||||
"wpad",
|
||||
|
@ -126,8 +122,23 @@ class RestrictedNames {
|
|||
// Laravel Horizon
|
||||
"horizon",
|
||||
|
||||
// Reserved route
|
||||
// Reserved routes
|
||||
"account",
|
||||
"api",
|
||||
"auth",
|
||||
"i",
|
||||
"discover",
|
||||
"home",
|
||||
"login",
|
||||
"logout",
|
||||
"p",
|
||||
"password",
|
||||
"search",
|
||||
"settings",
|
||||
"site",
|
||||
"timeline",
|
||||
"user",
|
||||
"users",
|
||||
];
|
||||
|
||||
public static function get()
|
||||
|
|
Loading…
Reference in a new issue