Skip to content

Commit

Permalink
fix: auto confirm email of first user
Browse files Browse the repository at this point in the history
  • Loading branch information
datlt4 committed Apr 20, 2024
1 parent 828fbb1 commit 1273322
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fhost.py
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,7 @@ def signup():
new_user.activate_user()
if db.session.query(User).count() <= 1:
new_user.set_admin_role()
new_user.confirm_email()

# add the new user to the database
db.session.add(new_user)
Expand Down

0 comments on commit 1273322

Please sign in to comment.