Formatting fix
This commit is contained in:
parent
c7d5015942
commit
783ce58991
@ -25,6 +25,7 @@ def make_error_pages(app):
|
|||||||
return render_template("error.html", message="Log in Failed"), 401
|
return render_template("error.html", message="Log in Failed"), 401
|
||||||
|
|
||||||
@app.errorhandler(CSRFError)
|
@app.errorhandler(CSRFError)
|
||||||
|
# pylint: disable=unused-variable
|
||||||
def session_expired(e):
|
def session_expired(e):
|
||||||
log_error(e)
|
log_error(e)
|
||||||
return redirect(url_for("atst.root", sessionExpired=True, next=request.path))
|
return redirect(url_for("atst.root", sessionExpired=True, next=request.path))
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
def test_csrf_error(app, client):
|
def test_csrf_error(app, client):
|
||||||
app.config.update({"WTF_CSRF_ENABLED": True})
|
app.config.update({"WTF_CSRF_ENABLED": True})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user