Commit 20f479f6 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

small refactoring on login function (default login is sent when none is

provided)
parent d54f99d8
......@@ -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);
......
{"expires":{"year":3017,"month":0,"dayOfMonth":30,"hourOfDay":14,"minute":52,"second":45},"id":"FILE_MOCK_TOKEN_ID"}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment