mirror of
https://github.com/hubHarmony/servii-backend.git
synced 2024-11-17 21:40:31 +00:00
Merge remote-tracking branch 'origin/master'
Signed-off-by: Charles Le Maux <charles.le-maux@epitech.eu>
This commit is contained in:
commit
dbabebfe3f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user