Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Darky2020 committed Aug 30, 2024
1 parent d51f1c4 commit 56a7359
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,8 @@ async def check_cloudflare_captcha(response, secret):


def is_protected_username(username: str):
username = username.strip().lower()

usernames = [
["admin", "blog", "dev", "ftp", "mail", "pop", "pop3", "imap", "smtp"],
["stage", "stats", "status", "www", "beta", "about", "access"],
Expand Down Expand Up @@ -395,7 +397,7 @@ def is_protected_username(username: str):


def remove_bad_characters(text):
text.replace("\ufff4", "")
text = text.replace("\ufff4", "")
return text


Expand Down

0 comments on commit 56a7359

Please sign in to comment.