This commit is contained in:
Mateusz779 2023-04-13 11:53:45 +02:00
parent f102a7f554
commit 6b46a94a87

2
app.py
View File

@ -18,7 +18,7 @@ ssh_thread.start()
@app.route('/') @app.route('/')
def main(): def main():
auth_token = request.cookies.get('auth_token') auth_token = request.cookies.get('auth_token')
if auth_token != "" and auth_token is not None: if auth_token != "" or auth_token is not None:
if db.get_user_bytoken(auth_token) is None: if db.get_user_bytoken(auth_token) is None:
return render_template('template/login.html') return render_template('template/login.html')
return render_template('template/index.html') return render_template('template/index.html')