servii-backend/unit_test.py
Charles Le Maux f9534c6aa2 [+] Simple ban function
Signed-off-by: Charles Le Maux <charles.le-maux@epitech.eu>
2024-07-10 18:33:54 +01:00

15 lines
362 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")