diff --git a/src/login/index.js b/src/login/index.js index be174fd..514a66f 100644 --- a/src/login/index.js +++ b/src/login/index.js @@ -27,14 +27,10 @@ var ngStorage = require('meanie-angular-storage'), // Note: ngHttpAuth seems to have no module.exports. ngHttpAuth = 'http-auth-interceptor'; -var loginTmpl = require('./login.tmpl.html'); - var LoginService = require('./login.service'); var LoginConfig = require('./login.config'); var LoginController = require('./login.controller'); -var base64 = require('base64util'); - module.exports = angular.module('accountant.login', [ ngHttpAuth, ngStorage, diff --git a/src/login/login.controller.js b/src/login/login.controller.js index ad8651d..3db1e1d 100644 --- a/src/login/login.controller.js +++ b/src/login/login.controller.js @@ -1,3 +1,5 @@ +var base64 = require('base64util'); + module.exports = function($scope, $uibModalInstance, $http, $log) { var vm = this; diff --git a/src/login/login.service.js b/src/login/login.service.js index fcc714a..d28eafc 100644 --- a/src/login/login.service.js +++ b/src/login/login.service.js @@ -1,3 +1,5 @@ +var loginTmpl = require('./login.tmpl.html'); + module.exports = function($uibModal, $storage, $document, $log, authService) { var login = function () { $storage.session.clear();