mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-06 09:20:43 +01:00
focus master password field on load
This commit is contained in:
parent
d6d535ed9e
commit
10792f714e
@ -2,13 +2,17 @@
|
|||||||
.module('bit.settings')
|
.module('bit.settings')
|
||||||
|
|
||||||
.controller('settingsTwoStepAuthenticatorController', function ($scope, apiService, $uibModalInstance, cryptoService,
|
.controller('settingsTwoStepAuthenticatorController', function ($scope, apiService, $uibModalInstance, cryptoService,
|
||||||
authService, $q, toastr, $analytics, constants) {
|
authService, $q, toastr, $analytics, constants, $timeout) {
|
||||||
$analytics.eventTrack('settingsTwoStepAuthenticatorController', { category: 'Modal' });
|
$analytics.eventTrack('settingsTwoStepAuthenticatorController', { category: 'Modal' });
|
||||||
var _issuer = 'bitwarden',
|
var _issuer = 'bitwarden',
|
||||||
_profile = null,
|
_profile = null,
|
||||||
_masterPasswordHash,
|
_masterPasswordHash,
|
||||||
_key = null;
|
_key = null;
|
||||||
|
|
||||||
|
$timeout(function () {
|
||||||
|
$("#masterPassword").focus();
|
||||||
|
});
|
||||||
|
|
||||||
$scope.auth = function (model) {
|
$scope.auth = function (model) {
|
||||||
var response = null;
|
var response = null;
|
||||||
$scope.authPromise = cryptoService.hashPassword(model.masterPassword).then(function (hash) {
|
$scope.authPromise = cryptoService.hashPassword(model.masterPassword).then(function (hash) {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
.module('bit.settings')
|
.module('bit.settings')
|
||||||
|
|
||||||
.controller('settingsTwoStepDuoController', function ($scope, apiService, $uibModalInstance, cryptoService,
|
.controller('settingsTwoStepDuoController', function ($scope, apiService, $uibModalInstance, cryptoService,
|
||||||
toastr, $analytics, constants) {
|
toastr, $analytics, constants, $timeout) {
|
||||||
$analytics.eventTrack('settingsTwoStepDuoController', { category: 'Modal' });
|
$analytics.eventTrack('settingsTwoStepDuoController', { category: 'Modal' });
|
||||||
var _masterPasswordHash;
|
var _masterPasswordHash;
|
||||||
|
|
||||||
@ -13,6 +13,10 @@
|
|||||||
skey: null
|
skey: null
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$timeout(function () {
|
||||||
|
$("#masterPassword").focus();
|
||||||
|
});
|
||||||
|
|
||||||
$scope.auth = function (model) {
|
$scope.auth = function (model) {
|
||||||
$scope.authPromise = cryptoService.hashPassword(model.masterPassword).then(function (hash) {
|
$scope.authPromise = cryptoService.hashPassword(model.masterPassword).then(function (hash) {
|
||||||
_masterPasswordHash = hash;
|
_masterPasswordHash = hash;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
.module('bit.settings')
|
.module('bit.settings')
|
||||||
|
|
||||||
.controller('settingsTwoStepEmailController', function ($scope, apiService, $uibModalInstance, cryptoService,
|
.controller('settingsTwoStepEmailController', function ($scope, apiService, $uibModalInstance, cryptoService,
|
||||||
authService, toastr, $analytics, constants) {
|
authService, toastr, $analytics, constants, $timeout) {
|
||||||
$analytics.eventTrack('settingsTwoStepEmailController', { category: 'Modal' });
|
$analytics.eventTrack('settingsTwoStepEmailController', { category: 'Modal' });
|
||||||
var _profile = null,
|
var _profile = null,
|
||||||
_masterPasswordHash;
|
_masterPasswordHash;
|
||||||
@ -12,6 +12,10 @@
|
|||||||
email: null
|
email: null
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$timeout(function () {
|
||||||
|
$("#masterPassword").focus();
|
||||||
|
});
|
||||||
|
|
||||||
$scope.auth = function (model) {
|
$scope.auth = function (model) {
|
||||||
var response = null;
|
var response = null;
|
||||||
$scope.authPromise = cryptoService.hashPassword(model.masterPassword).then(function (hash) {
|
$scope.authPromise = cryptoService.hashPassword(model.masterPassword).then(function (hash) {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
.module('bit.settings')
|
.module('bit.settings')
|
||||||
|
|
||||||
.controller('settingsTwoStepRecoverController', function ($scope, apiService, $uibModalInstance, cryptoService,
|
.controller('settingsTwoStepRecoverController', function ($scope, apiService, $uibModalInstance, cryptoService,
|
||||||
$analytics) {
|
$analytics, $timeout) {
|
||||||
$analytics.eventTrack('settingsTwoStepRecoverController', { category: 'Modal' });
|
$analytics.eventTrack('settingsTwoStepRecoverController', { category: 'Modal' });
|
||||||
$scope.code = null;
|
$scope.code = null;
|
||||||
|
|
||||||
@ -17,6 +17,10 @@
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$timeout(function () {
|
||||||
|
$("#masterPassword").focus();
|
||||||
|
});
|
||||||
|
|
||||||
$scope.print = function () {
|
$scope.print = function () {
|
||||||
if (!$scope.code) {
|
if (!$scope.code) {
|
||||||
return;
|
return;
|
||||||
|
@ -11,6 +11,10 @@
|
|||||||
$scope.deviceListening = false;
|
$scope.deviceListening = false;
|
||||||
$scope.deviceError = false;
|
$scope.deviceError = false;
|
||||||
|
|
||||||
|
$timeout(function () {
|
||||||
|
$("#masterPassword").focus();
|
||||||
|
});
|
||||||
|
|
||||||
$scope.auth = function (model) {
|
$scope.auth = function (model) {
|
||||||
$scope.authPromise = cryptoService.hashPassword(model.masterPassword).then(function (hash) {
|
$scope.authPromise = cryptoService.hashPassword(model.masterPassword).then(function (hash) {
|
||||||
_masterPasswordHash = hash;
|
_masterPasswordHash = hash;
|
||||||
|
@ -2,11 +2,15 @@
|
|||||||
.module('bit.settings')
|
.module('bit.settings')
|
||||||
|
|
||||||
.controller('settingsTwoStepYubiController', function ($scope, apiService, $uibModalInstance, cryptoService,
|
.controller('settingsTwoStepYubiController', function ($scope, apiService, $uibModalInstance, cryptoService,
|
||||||
authService, toastr, $analytics, constants) {
|
authService, toastr, $analytics, constants, $timeout) {
|
||||||
$analytics.eventTrack('settingsTwoStepYubiController', { category: 'Modal' });
|
$analytics.eventTrack('settingsTwoStepYubiController', { category: 'Modal' });
|
||||||
var _profile = null,
|
var _profile = null,
|
||||||
_masterPasswordHash;
|
_masterPasswordHash;
|
||||||
|
|
||||||
|
$timeout(function () {
|
||||||
|
$("#masterPassword").focus();
|
||||||
|
});
|
||||||
|
|
||||||
$scope.auth = function (model) {
|
$scope.auth = function (model) {
|
||||||
var response = null;
|
var response = null;
|
||||||
$scope.authPromise = cryptoService.hashPassword(model.masterPassword).then(function (hash) {
|
$scope.authPromise = cryptoService.hashPassword(model.masterPassword).then(function (hash) {
|
||||||
|
Loading…
Reference in New Issue
Block a user