Beispiel #1
0
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'))
Beispiel #2
0
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."}
Beispiel #3
0
def devices():
    return {
        "apps": running_context.get_apps(),
        "form": forms.AddNewDeviceForm(),
        "editDeviceform": forms.EditDeviceForm()
    }