diff --git a/frontend-js/src/main/js/ServerConnector.js b/frontend-js/src/main/js/ServerConnector.js index ee29d184c2f2dd833225f9cd5342f552d4c5e3e3..989b827fbdc01d7461f8984aed9285a787c899dc 100644 --- a/frontend-js/src/main/js/ServerConnector.js +++ b/frontend-js/src/main/js/ServerConnector.js @@ -872,6 +872,8 @@ ServerConnector.login = function(login, password) { if (login!==undefined) { params.login = login; params.password = password; + } else { + params.login = "anonymous"; } return self.sendPostRequest(self.loginUrl(),params).then(function(content) { var obj=JSON.parse(content); diff --git a/frontend-js/testFiles/apiCalls/user/login b/frontend-js/testFiles/apiCalls/user/login/login=&password=& similarity index 100% rename from frontend-js/testFiles/apiCalls/user/login rename to frontend-js/testFiles/apiCalls/user/login/login=&password=& diff --git a/frontend-js/testFiles/apiCalls/user/login/login=anonymous& b/frontend-js/testFiles/apiCalls/user/login/login=anonymous& new file mode 100644 index 0000000000000000000000000000000000000000..656e3fa390fe109b5f1551e3470f1e73d13746ab --- /dev/null +++ b/frontend-js/testFiles/apiCalls/user/login/login=anonymous& @@ -0,0 +1 @@ +{"expires":{"year":3017,"month":0,"dayOfMonth":30,"hourOfDay":14,"minute":52,"second":45},"id":"FILE_MOCK_TOKEN_ID"} \ No newline at end of file