mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 22:33:35 +00:00
pass phony username/pass. do syncing steps synchronously.
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user