1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 01:03:35 +00:00

token sanitization and adjust timeouts on u2f

This commit is contained in:
Kyle Spearrin
2017-06-27 08:14:03 -04:00
parent 0ee928cdce
commit 3e61d938bc
4 changed files with 9 additions and 4 deletions

View File

@@ -98,6 +98,11 @@ angular
}
$scope.twoFactor = function (token) {
if ($scope.twoFactorProvider === constants.twoFactorProvider.email
|| $scope.twoFactorProvider === constants.twoFactorProvider.authenticator) {
token = token.replace(' ', '');
}
$scope.twoFactorPromise = authService.logIn(_email, _masterPassword, token, $scope.twoFactorProvider,
$scope.rememberTwoFactor.checked || false);
@@ -211,6 +216,6 @@ angular
return;
}
$scope.twoFactor(JSON.stringify(data));
}, 5);
}, 10);
}
});