From b6bbcd398a56f807f0daa422814613705ec5d860 Mon Sep 17 00:00:00 2001 From: Impre-visible Date: Sun, 17 Nov 2024 18:55:44 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor:=20Set=20default?= =?UTF-8?q?=20account=20type=20to=20"Admin"=20during=20user=20signup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/chocolate_app/routes/api/auth.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/chocolate_app/routes/api/auth.py b/src/chocolate_app/routes/api/auth.py index aecc162..221ce9a 100644 --- a/src/chocolate_app/routes/api/auth.py +++ b/src/chocolate_app/routes/api/auth.py @@ -219,6 +219,7 @@ def signup(): existing_users = Users.query.all() if len(existing_users) > 0: return generate_response(Codes.USER_ALREADY_EXISTS, True) + account_type = "Admin" user = Users( name=account_name,