#3 Change the way we detect "invalid" / "banned" usernames

开启中
david4 年之前创建 · 2 条评论

Go from reading the "msg" field to "username" field...

This way we can block names like:

  • root (which currently is the only one blocked)
  • postgres
  • etc...

Should be as simple as

if j["username"] in bad_users:
    # they are a bad user, block them!
Go from reading the "msg" field to "username" field... This way we can block names like: * root (which currently is the only one blocked) * postgres * etc... Should be as simple as ``` if j["username"] in bad_users: # they are a bad user, block them! ```
David Thielemann 评论于 4 年之前
所有者

[9a9d5921c9] fixes this so we can just add it to the JSON then restart the script.

[9a9d5921c9] fixes this so we can just add it to the JSON then restart the script.
david4 年之前 关闭
David Thielemann 评论于 4 年之前
所有者

But... if it's miss spelled then we won't detect it.

But... if it's miss spelled then we won't detect it.
david4 年之前 重新开启
登录 并参与到对话中。
未选择里程碑
未指派成员
1 名参与者
正在加载...
取消
保存
这个人很懒,什么都没留下。