mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-23 11:56:00 +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, {
|
||||
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) {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user