   throw e
 ###
 
-# ---------------------------------------------------------------------------
-# Local Angular.js services
-# ---------------------------------------------------------------------------
-
-# ---------------------------------------------------------------------------
+###############################################################################
 # Controllers
+###############################################################################
+
+# ---------------------------------------------------------------------------
+# Main controller
 # ---------------------------------------------------------------------------
 
 mainCtrl = ($scope, $rootScope, macModal, $q) ->


        pwgAjax.post(url, {}, onSuccess, onFailure)


pwguardApp.controller 'LoginCtrl', ($scope, $rootScope, pwgAjax, pwgFlash) ->
  $scope.email     = null

  $rootScope.initializing  = true

  pwgFlash.init() # initialize the flash service
  ###
  $rootScope.$watch "loggedInUser", (user, prevUser) ->
    return if user is prevUser

