Bug 1064613 - Move server-side account deletion block in _handleGetAssertionError(). r=ferjm

This commit is contained in:
Sam Penrose 2014-09-08 16:45:03 -07:00
Родитель 3397687a7e
Коммит 738b9fb2e4
1 изменённых файлов: 13 добавлений и 14 удалений

Просмотреть файл

@ -196,20 +196,19 @@ this.FxAccountsManager = {
}
);
}
}
);
// Otherwise, the account was deleted, so ask for Sign In/Up
return this._localSignOut().then(
() => {
return this._uiRequest(UI_REQUEST_SIGN_IN_FLOW, aAudience,
aPrincipal);
},
(reason) => {
// reject primary problem, not signout failure
log.error("Signing out in response to server error threw: " +
reason);
return this._error(reason);
// ... otherwise, the account was deleted, so ask for Sign In/Up
return this._localSignOut().then(
() => {
return this._uiRequest(UI_REQUEST_SIGN_IN_FLOW, aAudience,
aPrincipal);
},
(reason) => {
// reject primary problem, not signout failure
log.error("Signing out in response to server error threw: " +
reason);
return this._error(reason);
}
);
}
);
}