refactor(backend): misc cleanup
This commit is contained in:
parent
5d452824cd
commit
f5f0416346
8 changed files with 43 additions and 62 deletions
|
@ -31,6 +31,7 @@ public partial class ValidationService
|
|||
"settings",
|
||||
"pronouns.cc",
|
||||
"pronounscc",
|
||||
"null",
|
||||
];
|
||||
|
||||
private static readonly string[] InvalidMemberNames =
|
||||
|
@ -38,8 +39,10 @@ public partial class ValidationService
|
|||
// these break routing outright
|
||||
".",
|
||||
"..",
|
||||
// the user edit page lives at `/@{username}/edit`, so a member named "edit" would be inaccessible
|
||||
// TODO: remove this? i'm not sure if /@[username]/edit will redirect to settings
|
||||
"edit",
|
||||
// this breaks the frontend, somehow
|
||||
"null",
|
||||
];
|
||||
|
||||
public ValidationError? ValidateUsername(string username)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue