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

login form styling. server validation errors displayed as sweet alerts

This commit is contained in:
Kyle Spearrin
2016-09-20 16:17:31 -04:00
parent 2fefdf8f6c
commit 47b500d7c0
11 changed files with 91 additions and 111 deletions

View File

@@ -2,7 +2,10 @@
.module('bit.accounts')
.controller('accountsLoginController', function ($scope, $state, loginService, userService) {
$scope.login = function (model) {
popupUtils.initListSectionItemListeners();
$scope.loginPromise = null;
$scope.login = function (model, form) {
$scope.loginPromise = loginService.logIn(model.email, model.masterPassword);
$scope.loginPromise.then(function () {