 
             form.setErrors(response.data)
 
-        submit = ->
+        submit = debounce 2000, =>
             if not form.validate()
                 return
 

            $confirm.notify("light-error", "According to our Oompa Loompas, your are not registered yet or
                                            typed an invalid password.") #TODO: i18n

        submitLogin = ->
            if not loginForm.validate()
                return


###

taiga = @.taiga
debounce = @.taiga.debounce

module = angular.module("taigaAuth", ["taigaResources"])

