mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
two step login page
This commit is contained in:
15
src/popup/app/accounts/accountsLoginTwoFactorController.js
Normal file
15
src/popup/app/accounts/accountsLoginTwoFactorController.js
Normal file
@@ -0,0 +1,15 @@
|
||||
angular
|
||||
.module('bit.accounts')
|
||||
|
||||
.controller('accountsLoginTwoFactorController', function ($scope, $state, loginService) {
|
||||
popupUtils.initListSectionItemListeners();
|
||||
$('#code').focus();
|
||||
|
||||
$scope.loginPromise = null;
|
||||
$scope.login = function (model) {
|
||||
$scope.loginPromise = loginService.logInTwoFactor(model.code);
|
||||
$scope.loginPromise.then(function () {
|
||||
$state.go('tabs.vault', { animation: 'in-slide-left' });
|
||||
});
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user