From c907c56c4a009df03dad4ce6c4bb1784ccd29384 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Sat, 10 Jun 2017 23:13:08 +0200 Subject: [PATCH] Cleanup. --- src/login/index.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/login/index.js b/src/login/index.js index b478e12..dd3c8ed 100644 --- a/src/login/index.js +++ b/src/login/index.js @@ -94,20 +94,9 @@ var loginModule = angular.module('accountant.login', [ $storageProvider.setEnabledStorageEngines(['local', 'session']); }) -.value('dialogShow', false) - .run(function($rootScope, LoginService, authService, $storage, $ngBootbox, $document) { - //var dialogShown = false; - var showLoginForm = function() { - // First, if there are registered credentials, use them - //if (dialogShown) { - // return; - //} - - //dialogShown = true; - $storage.session.clear(); $ngBootbox.customDialog({ @@ -118,8 +107,6 @@ var loginModule = angular.module('accountant.login', [ label: 'Login', className: 'btn-primary', callback: function() { - //dialogShown = false; - var email = angular.element($document[0].querySelector('#email')).val(); var password = angular.element($document[0].querySelector('#password')).val(); LoginService.login( @@ -139,7 +126,6 @@ var loginModule = angular.module('accountant.login', [ className: 'btn-default', callback: function() { authService.loginCancelled(null, 'Login cancelled by user action.'); - //dialogShown = false; } } }