def default(): if current_user.is_authenticated: default_page_name = 'dashboard' args = { "apps": running_context.get_apps(), "authKey": current_user.get_auth_token(), "currentUser": current_user.email, "default_page": default_page_name } return render_template("container.html", **args) else: return redirect(url_for('/login'))
def default(): if current_user.is_authenticated: default_page_name = 'dashboard' args = { "apps": running_context.get_apps(), "authKey": current_user.get_auth_token(), "currentUser": current_user.email, "default_page": default_page_name } return render_template("container.html", **args) else: return {"status": "Could Not Log In."}
def devices(): return { "apps": running_context.get_apps(), "form": forms.AddNewDeviceForm(), "editDeviceform": forms.EditDeviceForm() }