fd
This commit is contained in:
parent
7978ba9309
commit
a7d9fa3902
27 changed files with 144 additions and 249 deletions
|
@ -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.",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue