From 1273322b21f13b290c9ea27ea4d08753d89bed7f Mon Sep 17 00:00:00 2001 From: datlt4 Date: Sun, 21 Apr 2024 00:17:08 +0700 Subject: [PATCH] fix: auto confirm email of first user --- fhost.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fhost.py b/fhost.py index a59689c..664bfe2 100755 --- a/fhost.py +++ b/fhost.py @@ -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)