mirror of
https://github.com/Fluffy-Bean/GameExpo23.git
synced 2025-05-18 17:34:52 +00:00
Switch account for settings
This commit is contained in:
parent
22b5fa13fb
commit
3d9b387ea8
5 changed files with 69 additions and 68 deletions
|
@ -18,24 +18,6 @@ def auth():
|
|||
return render_template("auth.html")
|
||||
|
||||
|
||||
@blueprint.route("/account", methods=["GET"])
|
||||
@login_required
|
||||
def account():
|
||||
action = request.args.get("action", None)
|
||||
|
||||
if action == "logout":
|
||||
logout_user()
|
||||
flash("Successfully logged out!", "success")
|
||||
return redirect(url_for("views.index"))
|
||||
if action == "delete":
|
||||
flash("Insert delete function", "error")
|
||||
if action == "password":
|
||||
flash("Insert password change function", "error")
|
||||
|
||||
sessions = Sessions.query.filter_by(user_id=current_user.id).all()
|
||||
return render_template("account.html", sessions=sessions)
|
||||
|
||||
|
||||
@blueprint.route("/register", methods=["POST"])
|
||||
def register():
|
||||
# Get the form data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue