pass phony username/pass. do syncing steps synchronously.

This commit is contained in:
Kyle Spearrin 2017-01-21 23:34:12 -05:00
parent ca6de7d9ec
commit a9fbc92943
2 changed files with 7 additions and 6 deletions

View File

@ -345,6 +345,8 @@ function initApiService() {
postConnectToken(self, {
grant_type: 'password',
oldAuthBearer: authBearer,
username: 'abcdefgh', // has to be something
password: 'abcdefgh', // has to be something
scope: 'api offline_access',
client_id: 'browser'
}, function (token) {

View File

@ -34,14 +34,13 @@ function initSyncService() {
return;
}
var promises = [];
promises.push(syncVault(userId));
promises.push(syncSettings(userId));
Q.all(promises).then(function () {
self.setLastSync(now, function () {
syncVault(userId).then(function () {
syncSettings(userId).then(function () {
self.syncCompleted(true);
callback(true);
}, function () {
self.syncCompleted(false);
callback(false);
});
}, function () {
self.syncCompleted(false);