0
我希望用户无法获取任何资产,如果他们还没有登录任何一个可以告诉我为什么下面不适合工作。的Python:瓶:所有用户的URL login_required
http://domain-name:5000/static/index.html.
用户获取服务的index.html文件,即使他们还没有登录。
lm.login_view = "/static/login.html"
@app.route('/',defaults={'path':''})
@app.route('/static/<path:path>')
@login_required
def root():
logging.debug('Login Required - Authenticated user. Will Redirect')
return redirect(path)
谢谢!