1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-24 12:06:15 +01:00

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, { postConnectToken(self, {
grant_type: 'password', grant_type: 'password',
oldAuthBearer: authBearer, oldAuthBearer: authBearer,
username: 'abcdefgh', // has to be something
password: 'abcdefgh', // has to be something
scope: 'api offline_access', scope: 'api offline_access',
client_id: 'browser' client_id: 'browser'
}, function (token) { }, function (token) {

View File

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