|
|
@ -132,6 +132,12 @@ def login():
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
return render_template('login.html')
|
|
|
|
return render_template('login.html')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@app.route("/logout")
|
|
|
|
|
|
|
|
@login_required
|
|
|
|
|
|
|
|
def logout():
|
|
|
|
|
|
|
|
logout_user()
|
|
|
|
|
|
|
|
return redirect('/')
|
|
|
|
|
|
|
|
|
|
|
|
# callback to reload the user object
|
|
|
|
# callback to reload the user object
|
|
|
|
@login_manager.user_loader
|
|
|
|
@login_manager.user_loader
|
|
|
|
def load_user(userid):
|
|
|
|
def load_user(userid):
|
|
|
|