servii-backend/unit_test.py
Charles Le Maux 91e4258d3b [+] New history system
Now every server related event is logged.
Users will soon be able to access their server's history on the front as well.

Co-authored-by: Antoninop <antoninopiraino70@gmail.com>
2024-08-20 18:56:43 +02:00

16 lines
451 B
Python

import file_manager
import firebase_manager
def ban_user(user_id: str):
try:
firebase_manager.auth.update_user(user_id, disabled=False)
print("Banned : " + user_id)
except Exception as e:
print("Error banning user " + user_id, "|", str(e), type(e).__name__)
if __name__ == '__main__':
#ban_user("MpkbDMOO8PQddQgB5VgBQdTMWF53")
file_manager.log_action("gqZN3eCHF3V2er3Py3rlgk8u2t83", "test", "DeleteServer")