      var oauthConfigObject = JSON.parse('%(OAuthConfigObject)');

        var loginObject = configObject.LoginInfo;
        if (loginObject && loginObject.enabled === true) {
            var loginForm = document.getElementById("login-form");
            var userName = document.getElementById("userName");
            var password = document.getElementById("password");
            var tenantName = document.getElementById("tenantName");
            var submit = document.getElementById("submit");
            v