1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

2fa method selection

This commit is contained in:
Kyle Spearrin
2017-06-20 17:06:14 -04:00
parent cf5b0635e4
commit 2f3035a08f
6 changed files with 159 additions and 35 deletions

View File

@@ -63,8 +63,9 @@ angular
}, function (error) {
_service.logOut();
if (error.status === 400 && error.data.TwoFactorProviders && error.data.TwoFactorProviders.length) {
deferred.resolve(error.data.TwoFactorProviders);
if (error.status === 400 && error.data.TwoFactorProviders2 &&
Object.keys(error.data.TwoFactorProviders2).length) {
deferred.resolve(error.data.TwoFactorProviders2);
}
else {
deferred.reject(error);