1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 00:03:56 +00:00

recovery code

This commit is contained in:
Kyle Spearrin
2017-06-24 16:59:01 -04:00
parent 2f07d22a9e
commit 39281811f5
10 changed files with 142 additions and 8 deletions

View File

@@ -2,7 +2,7 @@ angular
.module('bit.accounts')
.controller('accountsRegisterController', function ($scope, $location, apiService, cryptoService, validationService,
$analytics, $state) {
$analytics, $state, $timeout) {
var params = $location.search();
var stateParams = $state.params;
$scope.createOrg = stateParams.org;
@@ -23,6 +23,16 @@ angular
};
$scope.readOnlyEmail = stateParams.email !== null;
$timeout(function () {
if ($scope.model.email) {
$("#name").focus();
}
else {
$("#email").focus();
}
});
$scope.registerPromise = null;
$scope.register = function (form) {
var error = false;