def system_pages(name): if current_user.is_authenticated and name: args = getattr(interface, name)() combine_dicts(args, {"authKey": current_user.get_auth_token()}) return render_template("pages/" + name + "/index.html", **args) else: return {"status": "Could Not Log In."}
def __func(): if current_user.is_authenticated and interface_name: args = getattr(interface, interface_name)() combine_dicts(args, {"authKey": current_user.get_auth_token()}) return render_template("pages/" + interface_name + "/index.html", **args), SUCCESS else: current_app.logger.debug('Unsuccessful login attempt') return {"error": "Could not Log In."}, UNAUTHORIZED_ERROR