80
80
var tos_acceptbuttons = document.getElementById("tos_acceptbuttons");
81
81
dom_removechildren(tos_acceptbuttons);
85
response = JSON.parse(xhr.responseText);
89
response = {'response': 'parse-failure'};
92
if (response.response == 'usrmgt-failure')
94
tos_acceptbuttons.appendChild(dom_make_text_elem("p",
95
"Error connecting to User Management server. Please try again later."));
97
else if (response.response == 'parse-failure')
99
tos_acceptbuttons.appendChild(dom_make_text_elem("p",
100
"Error connecting to server. Please try again later. "));
102
else if (response.response == 'error')
104
tos_acceptbuttons.appendChild(dom_make_text_elem("p",
105
"Error activating user: " + response.message));
109
/* Refresh the page; as the user is now (apparently) logged in */
110
window.location.href = parse_url(window.location.href).args["url"] || "/";
82
/* Refresh the page; as the user is now (apparently) logged in */
83
window.location.href = window.location.href;
114
86
function decline_license()
116
88
/* Redirect to the logout page */
117
window.location.href = app_path("+logout");
89
window.location.href = app_path("logout");