1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

registration

This commit is contained in:
Kyle Spearrin
2016-09-20 19:57:24 -04:00
parent d7d45f3b50
commit ee4548a84a
9 changed files with 124 additions and 20 deletions

View File

@@ -1,9 +1,19 @@
angular
.module('bit.accounts')
.controller('accountsLoginController', function ($scope, $state, loginService, userService) {
.controller('accountsLoginController', function ($scope, $state, $stateParams, loginService, userService) {
popupUtils.initListSectionItemListeners();
$('#email').focus();
if ($stateParams.email) {
$('#master-password').focus();
}
else {
$('#email').focus();
}
$scope.model = {
email: $stateParams.email
};
$scope.loginPromise = null;
$scope.login = function (model) {