mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-22 11:45:59 +01:00
has instead of get.
This commit is contained in:
parent
7e1450f581
commit
848117ff86
@ -11,22 +11,22 @@ angular
|
||||
|
||||
$scope.providers = [];
|
||||
|
||||
if (providers.get(constants.twoFactorProvider.organizationDuo)) {
|
||||
if (providers.has(constants.twoFactorProvider.organizationDuo)) {
|
||||
add(constants.twoFactorProvider.organizationDuo);
|
||||
}
|
||||
if (providers.get(constants.twoFactorProvider.authenticator)) {
|
||||
if (providers.has(constants.twoFactorProvider.authenticator)) {
|
||||
add(constants.twoFactorProvider.authenticator);
|
||||
}
|
||||
if (providers.get(constants.twoFactorProvider.yubikey)) {
|
||||
if (providers.has(constants.twoFactorProvider.yubikey)) {
|
||||
add(constants.twoFactorProvider.yubikey);
|
||||
}
|
||||
if (providers.get(constants.twoFactorProvider.email)) {
|
||||
if (providers.has(constants.twoFactorProvider.email)) {
|
||||
add(constants.twoFactorProvider.email);
|
||||
}
|
||||
if (providers.get(constants.twoFactorProvider.duo)) {
|
||||
if (providers.has(constants.twoFactorProvider.duo)) {
|
||||
add(constants.twoFactorProvider.duo);
|
||||
}
|
||||
if (providers.get(constants.twoFactorProvider.u2f) && platformUtilsService.supportsU2f($window)) {
|
||||
if (providers.has(constants.twoFactorProvider.u2f) && platformUtilsService.supportsU2f($window)) {
|
||||
add(constants.twoFactorProvider.u2f);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user