Closed francoisihry closed 4 years ago
Hi,
I need to protect the access to my flask server with flask-login.
This is done by adding @login_required to the path I need to protect. Example:
@app.route("/my/path") @login_required def test(): return 'hello'
With flask-autoindex the paths are dynamic, how can I force the user to login for every path ?
Hello,
Why do not want to use @login_required decorator ?
@login_required
Without answer I close this issue
Hi,
I need to protect the access to my flask server with flask-login.
This is done by adding @login_required to the path I need to protect. Example:
With flask-autoindex the paths are dynamic, how can I force the user to login for every path ?