mirror of
https://github.com/bitwarden/web
synced 2026-01-02 16:43:24 +00:00
focus master password field on load
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
.module('bit.settings')
|
||||
|
||||
.controller('settingsTwoStepEmailController', function ($scope, apiService, $uibModalInstance, cryptoService,
|
||||
authService, toastr, $analytics, constants) {
|
||||
authService, toastr, $analytics, constants, $timeout) {
|
||||
$analytics.eventTrack('settingsTwoStepEmailController', { category: 'Modal' });
|
||||
var _profile = null,
|
||||
_masterPasswordHash;
|
||||
@@ -12,6 +12,10 @@
|
||||
email: null
|
||||
};
|
||||
|
||||
$timeout(function () {
|
||||
$("#masterPassword").focus();
|
||||
});
|
||||
|
||||
$scope.auth = function (model) {
|
||||
var response = null;
|
||||
$scope.authPromise = cryptoService.hashPassword(model.masterPassword).then(function (hash) {
|
||||
|
||||
Reference in New Issue
Block a user