2fa page updates
This commit is contained in:
parent
43f563d187
commit
493508e467
|
@ -977,5 +977,8 @@
|
|||
},
|
||||
"clear": {
|
||||
"message": "Clear"
|
||||
},
|
||||
"2faNewWindowMessage": {
|
||||
"message": "Complete your two-step login request using the new tab."
|
||||
}
|
||||
}
|
||||
|
|
|
@ -77,14 +77,12 @@ angular
|
|||
$scope.loginPromise = authService.logIn(email, masterPassword, $scope.providerType, token, $scope.remember.checked);
|
||||
$scope.loginPromise.then(function () {
|
||||
$analytics.eventTrack('Logged In From Two-step');
|
||||
$state.go('tabs.vault', { animation: 'in-slide-left', syncOnLoad: true }).then(function(){
|
||||
$state.go('tabs.vault', { animation: 'in-slide-left', syncOnLoad: true }).then(function () {
|
||||
if (sendSuccessToTab) {
|
||||
$timeout(function() {
|
||||
$timeout(function () {
|
||||
BrowserApi.tabSendMessage(sendSuccessToTab, {
|
||||
command: '2faPageData',
|
||||
data: {
|
||||
type: 'success'
|
||||
}
|
||||
data: { type: 'success' }
|
||||
});
|
||||
}, 1000);
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@ angular
|
|||
.module('bit.accounts')
|
||||
|
||||
.controller('accountsTwoFactorMethodsController', function ($scope, $state, $stateParams, constantsService,
|
||||
utilsService, i18nService, $analytics) {
|
||||
utilsService, i18nService, $analytics, platformUtilsService) {
|
||||
$scope.i18n = i18nService;
|
||||
|
||||
var constants = constantsService;
|
||||
|
|
|
@ -55,8 +55,8 @@
|
|||
<div id="duoFrameWrapper" ng-if="!showNewWindowMessage">
|
||||
<iframe id="duo_iframe"></iframe>
|
||||
</div>
|
||||
<div ng-if="showNewWindowMessage">
|
||||
<div class="two-step-window-message">Complete your two-step login request using the new window.</div>
|
||||
<div ng-if="showNewWindowMessage" class="two-factor-key-page">
|
||||
<p>{{i18n.2faNewWindowMessage}}</p>
|
||||
</div>
|
||||
<div class="list">
|
||||
<div class="list-section">
|
||||
|
|
|
@ -587,11 +587,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
.two-step-window-message {
|
||||
text-align: center;
|
||||
margin: 30px 0 20px 0;
|
||||
}
|
||||
|
||||
#duoFrameWrapper {
|
||||
background: ~"url('../images/loading.svg') 0 0 no-repeat";
|
||||
width: 100%;
|
||||
|
|
Loading…
Reference in New Issue