Skip to content

Commit

Permalink
♻️ refactor: Set default account type to "Admin" during user signup
Browse files Browse the repository at this point in the history
  • Loading branch information
Impre-visible committed Nov 17, 2024
1 parent 0b96693 commit b6bbcd3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/chocolate_app/routes/api/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b6bbcd3

Please sign in to comment.