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

two step login page

This commit is contained in:
Kyle Spearrin
2016-09-21 11:35:24 -04:00
parent 32d459159c
commit 8a3a981ac1
7 changed files with 64 additions and 30 deletions

View File

@@ -22,16 +22,12 @@
$scope.loginPromise.then(function () {
userService.isTwoFactorAuthenticated(function (isTwoFactorAuthenticated) {
if (isTwoFactorAuthenticated) {
$state.go('login.twoFactor');
$state.go('twoFactor', { animation: 'in-slide-left' });
}
else {
$state.go('tabs.current', { animation: 'in-slide-left' });
$state.go('tabs.vault', { animation: 'in-slide-left' });
}
});
});
};
$scope.twoFactor = function (model) {
$state.go('tabs.current');
};
});