public/js/user.js in cyclid-ui-0.2.4 vs public/js/user.js in cyclid-ui-0.2.5
- old
+ new
@@ -8,11 +8,11 @@
// should log in again. A status of 0 here means that an error occured
// during the AJAX request; possible a CORS issue. In that case we'll assume
// the worst (cyclid.token is invalid) and force re-authentication, too.
if(xhr.status == 401 || xhr.status == 0){
console.log(`Failed to retrieve job list: status was ${xhr.status}`);
- window.location = '/login';
+ window.location = '/';
} else {
var failure_message = `Failed to retrieve user details<br>
<strong>${xhr.status}:</strong> ${xhr.responseText}`;
failure_message = `Get failed: ${xhr.status}`;
@@ -39,10 +39,10 @@
var config_org = $(`#user_config_${org}`);
config_org.data('org', org);
config_org.click(function(e) {
var org = $(this).data('org');
- var config = `server: ${gblAPIURL}\n` +
+ var config = `url: ${gblAPIURL}\n` +
`organization: ${org}\n` +
`username: ${user.username}\n` +
`secret: ${user.secret}\n`;
console.log(`${org} was clicked: ${config}`);