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:
parent
ca6de7d9ec
commit
a9fbc92943
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user