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

lint fixes

This commit is contained in:
Kyle Spearrin
2017-06-27 08:26:00 -04:00
parent be1cc945a2
commit 29cbe48eb5
5 changed files with 11 additions and 11 deletions

View File

@@ -98,8 +98,8 @@ angular
}
$scope.twoFactor = function (token) {
if ($scope.twoFactorProvider === constants.twoFactorProvider.email
|| $scope.twoFactorProvider === constants.twoFactorProvider.authenticator) {
if ($scope.twoFactorProvider === constants.twoFactorProvider.email ||
$scope.twoFactorProvider === constants.twoFactorProvider.authenticator) {
token = token.replace(' ', '');
}
@@ -164,8 +164,9 @@ angular
}
function init() {
var params;
if ($scope.twoFactorProvider === constants.twoFactorProvider.duo) {
var params = $scope.twoFactorProviders[constants.twoFactorProvider.duo];
params = $scope.twoFactorProviders[constants.twoFactorProvider.duo];
$window.Duo.init({
host: params.Host,
@@ -177,13 +178,13 @@ angular
});
}
else if ($scope.twoFactorProvider === constants.twoFactorProvider.u2f) {
var params = $scope.twoFactorProviders[constants.twoFactorProvider.u2f];
params = $scope.twoFactorProviders[constants.twoFactorProvider.u2f];
var challenges = JSON.parse(params.Challenges);
initU2f(challenges);
}
else if ($scope.twoFactorProvider === constants.twoFactorProvider.email) {
var params = $scope.twoFactorProviders[constants.twoFactorProvider.email];
params = $scope.twoFactorProviders[constants.twoFactorProvider.email];
$scope.twoFactorEmail = params.Email;
if (Object.keys($scope.twoFactorProviders).length > 1) {
$scope.sendEmail(false);