mirror of
https://github.com/Fluffy-Bean/GameExpo23.git
synced 2025-05-14 14:22:16 +00:00
Missing imports and wrong redirect
This commit is contained in:
parent
a93a8cf04d
commit
f2ee0279f0
2 changed files with 2 additions and 2 deletions
|
@ -82,7 +82,7 @@ def login():
|
|||
if error:
|
||||
for err in error:
|
||||
flash(err, "error")
|
||||
return redirect(url_for("views.account"))
|
||||
return redirect(url_for("auth.auth"))
|
||||
|
||||
login_user(user, remember=True)
|
||||
flash("Successfully logged in!", "success")
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from flask import Blueprint, request, render_template, abort
|
||||
from flask import Blueprint, request, render_template, abort, flash, redirect, url_for
|
||||
from flask_login import login_required, current_user, logout_user
|
||||
from server.models import Scores, Users, Sessions
|
||||
from server.config import GAME_VERSION, MAX_TOP_SCORES
|
||||
|
|
Loading…
Add table
Reference in a new issue