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

added ability to pass and parse twofactor provider

This commit is contained in:
Kyle Spearrin
2017-06-26 09:55:07 -04:00
parent f6fc8a4a0f
commit 981fd22ce5
4 changed files with 18 additions and 16 deletions

View File

@@ -32,10 +32,10 @@
return;
}
$scope.loginPromise = authService.logIn(model.email, model.masterPassword, null);
$scope.loginPromise = authService.logIn(model.email, model.masterPassword, null, null);
$scope.loginPromise.then(function (twoFactor) {
if (twoFactor) {
$scope.loginPromise.then(function (response) {
if (response.twoFactor) {
$analytics.eventTrack('Logged In To Two-step');
$state.go('twoFactor', {
animation: 'in-slide-left',