forked from orson/bachemap
more sanity checks with auth
This commit is contained in:
parent
61f970c56d
commit
849b5cbafc
2
app.py
2
app.py
@ -210,7 +210,7 @@ def create_app(config=Config):
|
|||||||
@login_required
|
@login_required
|
||||||
def dashboard():
|
def dashboard():
|
||||||
if request.method == 'GET':
|
if request.method == 'GET':
|
||||||
if not current_user.is_authenticated:
|
if current_user.is_authenticated == False:
|
||||||
return redirect(url_for('thelogin'))
|
return redirect(url_for('thelogin'))
|
||||||
else:
|
else:
|
||||||
invite_code = str(uuid4())
|
invite_code = str(uuid4())
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user