Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion augur/api/view/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,11 @@ def authorize_user():
@app.route('/account/delete')
@login_required
def user_delete():
if current_user.delete()[0]:
if current_user.delete(db_session)[0]:
flash(f"Account {current_user.login_name} successfully removed")
logout_user()
else:
logger.error(f"Exception occurred while deleting account {current_user.login_name}: {e}")
flash("An error occurred removing the account")

return redirect(url_for("root"))
Expand Down