From fa7d1fef2f1d2519df73e61a4feb9aa152be8ae1 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 1 Jun 2018 13:57:31 -0600 Subject: [PATCH] Update RestrictedNames so users can't register a username that conflicts with routes --- app/Util/Lexer/RestrictedNames.php | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/app/Util/Lexer/RestrictedNames.php b/app/Util/Lexer/RestrictedNames.php index 698b31cd2..8f9680920 100644 --- a/app/Util/Lexer/RestrictedNames.php +++ b/app/Util/Lexer/RestrictedNames.php @@ -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()