{
    "$schema": "../TcHmiFramework/Schema/FunctionDescription.Schema.json",
    "apiVersion": 1,
    "version": {
        "full": "1.12.760.48",
        "major": 1,
        "minor": 12,
        "build": 760,
        "revision": 48
    },
    "dependencyFiles": [
        {
            "name": "Login.js",
            "type": "JavaScript",
            "description": ""
        }
    ],
    "function": {
        "name": "Login",
        "namespace": "TcHmi.Functions.Beckhoff",
        "displayName": "Login",
        "visible": true,
        "category": "UserManagement",
        "description": "Login server session. Reload on login is recommended for security reasons.\nThis function is deprecated. Its recommended to use LoginEx.",
        "returnValue": {
            "type": "tchmi:general#/definitions/Boolean",
            "description": "Returns a boolean if the login was called."
        },
        "arguments": [
            {
                "name": "username",
                "displayName": "Username",
                "type": "tchmi:general#/definitions/String",
                "description": "Username to login.",
                "bindable": true
            },
            {
                "name": "password",
                "displayName": "Password",
                "type": "tchmi:general#/definitions/String",
                "description": "Password to login.",
                "bindable": true
            },
            {
                "name": "persistent",
                "displayName": "Persistent",
                "type": "tchmi:general#/definitions/Boolean",
                "description": "Should the session be valid even after browser restart.",
                "bindable": true,
                "defaultValue": true
            },
            {
                "name": "reload",
                "displayName": "Reload",
                "type": "tchmi:general#/definitions/Boolean",
                "description": "Reload on login?",
                "bindable": true,
                "defaultValue": true
            }
        ]
    }
}