This commit is contained in:
Aevann1 2021-08-11 19:01:19 +02:00
parent 7978ba9309
commit a7d9fa3902
27 changed files with 144 additions and 249 deletions

View file

@ -346,7 +346,7 @@ def sign_up_post(v):
return new_signup("Please enter a valid email")
g.db.add(new_user)
g.db.commit()
g.db.flush()
# give a beta badge
beta_badge = Badge(user_id=new_user.id,
@ -570,7 +570,6 @@ def reset_2fa():
user.mfa_secret=None
g.db.add(user)
g.db.commit()
return render_template("message_success.html",
title="Two-factor authentication removed.",