Skip to content

Commit d6cee75

Browse files
illyaVvengrov
authored andcommitted
fix (Users-Service): isValidLogin method fix (#45)
1 parent cf6d421 commit d6cee75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/backendless.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1955,7 +1955,7 @@
19551955
method : 'GET',
19561956
url : Backendless.serverURL + '/' + Backendless.appVersion + '/users/isvalidusertoken/' + userToken,
19571957
isAsync : isAsync,
1958-
asyncHandler: responder && this._wrapAsync(responder)
1958+
asyncHandler: responder
19591959
});
19601960
}
19611961
} else {
@@ -1964,7 +1964,7 @@
19641964
if (isAsync) {
19651965
//if async need to put it to the end of the stack
19661966
setTimeout(function() {
1967-
responder[user ? 'success' : 'fault']();
1967+
responder.success(!!user);
19681968
}, 0);
19691969
} else {
19701970
return !!user;

0 commit comments

Comments
 (0)