Skip to content

Commit

Permalink
login view bugfix [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
hkernbach committed Jun 12, 2016
1 parent 976160f commit 7b6ff09
Showing 1 changed file with 5 additions and 4 deletions.
Expand Up @@ -102,7 +102,9 @@
);
}
else {
var url = arangoHelper.databaseUrl("/_api/database/user", '_system');
// TODO
//var url = arangoHelper.databaseUrl("/_api/database/user", '_system');
var url = arangoHelper.databaseUrl("/_api/user/" + encodeURIComponent(username) + "/database", '_system');

if (frontendConfig.authenticationEnabled === false) {
url = arangoHelper.databaseUrl("/_api/database/user");
Expand All @@ -119,16 +121,15 @@
//enable db select and login button
$('#loginDatabase').html('');
//fill select with allowed dbs
_.each(data.result, function(db) {
_.each(data.result, function(db, key) {
$('#loginDatabase').append(
'<option>' + db + '</option>'
'<option>' + key + '</option>'
);
});

self.renderDBS();
}).error(function(data) {
$('.wrong-credentials').show();
console.log(data);
});
}
}.bind(this);
Expand Down

0 comments on commit 7b6ff09

Please sign in to comment.