Merge remote-tracking branch 'origin/master'

Signed-off-by: Charles Le Maux <charles.le-maux@epitech.eu>
This commit is contained in:
Charles Le Maux 2024-07-11 14:46:38 +01:00
commit dbabebfe3f

View File

@ -57,7 +57,7 @@ def fetch_servers(user: UserRecord) -> tuple[HTTPStatus, str or list]:
def account_create(user: UserRecord) -> tuple[HTTPStatus, str or None]:
if firebase_manager.user_field_exists(user.uid, 'port'):
if firebase_manager.user_field_exists(user.uid):
return HTTPStatus.FORBIDDEN, "User already exists."
try:
file_manager.create_folder("users/" + user.uid)