mirror of
https://github.com/wolfswolke/DeathGarden_API_Rebirth.git
synced 2026-04-24 06:57:15 -05:00
moderation username is now 204
This commit is contained in:
parent
39c2c46d16
commit
b3808e1201
|
|
@ -467,15 +467,12 @@ def moderation_check_username():
|
|||
username = sanitize_input(request_var["username"])
|
||||
# This would be to censor usernames, but we don't need to do that.
|
||||
# Also not sure if this is the right response
|
||||
steam_id = mongo.get_data_with_list(login=userid, login_steam=False, items={"steamid"})["steamid"]
|
||||
developers = ["76561198124949660", "76561199169781285"]
|
||||
if steam_id in developers:
|
||||
username = "Dev: " + username
|
||||
return username
|
||||
return jsonify({
|
||||
"Username": username,
|
||||
"UserId": userid
|
||||
})
|
||||
# steam_id = mongo.get_data_with_list(login=userid, login_steam=False, items={"steamid"})["steamid"]
|
||||
# developers = ["76561198124949660", "76561199169781285"]
|
||||
# if steam_id in developers:
|
||||
# username = "Dev: " + username
|
||||
# return username
|
||||
return "", 204
|
||||
except TimeoutError:
|
||||
return jsonify({"status": "error"})
|
||||
except Exception as e:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user