Fix eslint errors again.

This commit is contained in:
Alexis Lahouze 2016-10-14 09:00:55 +02:00
parent 97d23c5bcd
commit 81434d7fde
1 changed files with 3 additions and 3 deletions

View File

@ -91,7 +91,7 @@ angular.module('accountant', [
editableOptions.theme = 'bs3'; // bootstrap3 theme. Can be also 'bs2', 'default'
})
.service('LoginService', function($http) {
.factory('LoginService', function($http) {
var login = function(email, password) {
return $http.post('/api/user/login', {
email: email,
@ -129,8 +129,8 @@ angular.module('accountant', [
callback: function() {
vm.dialogShown = false;
var email = $('#email').val();
var password = $('#password').val();
var email = angular.element('#email').val();
var password = angular.element('#password').val();
LoginService.login(email, password).success(function(result) {
// TODO Alexis Lahouze 2015-08-28 Handle callback.
// Call to /api/login to retrieve the token