             $confirm.notify("light-error", "According to our Oompa Loompas, your are not registered yet or
                                             typed an invalid password.") #TODO: i18n
 
-        submitLogin = ->
+        submitLogin = debounce 2000, =>
             if not loginForm.validate()
                 return
 

            $confirm.notify("light-error", "One of our Oompa Loompas say
                            '#{response.data._error_message}'.") #TODO: i18n

        submit = ->
            if not form.validate()
                return



        # Login form
        $scope.dataLogin = {token: token}
        loginForm = $el.find("form.login-form").checksley({onlyOneErrorElement: true})

        onSuccessSubmitLogin = (response) ->
            $analytics.trackEvent("auth", "invitationAccept", "invitation accept with existing user", 1)
