def ask_login():
if not current_user.is_anonymous:
return
if getattr(current_app.view_functions[request.endpoint], 'no_login', False):
return
return redirect(url_for('ares.aresLogin', next=request.endpoint))
文章目录