1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-23 11:43:46 +00:00

focus master password field on load

This commit is contained in:
Kyle Spearrin
2017-07-24 12:08:21 -04:00
parent d6d535ed9e
commit 10792f714e
6 changed files with 29 additions and 5 deletions

View File

@@ -2,11 +2,15 @@
.module('bit.settings')
.controller('settingsTwoStepYubiController', function ($scope, apiService, $uibModalInstance, cryptoService,
authService, toastr, $analytics, constants) {
authService, toastr, $analytics, constants, $timeout) {
$analytics.eventTrack('settingsTwoStepYubiController', { category: 'Modal' });
var _profile = null,
_masterPasswordHash;
$timeout(function () {
$("#masterPassword").focus();
});
$scope.auth = function (model) {
var response = null;
$scope.authPromise = cryptoService.hashPassword(model.masterPassword).then(function (hash) {