             event.preventDefault()
             submitLogin()
 
-        #$##############
         # Register form
-        #$##############
         $scope.dataRegister = {token: token}
         registerForm = $el.find("form.register-form").checksley()
 

module.directive("tgInvitation", ["$tgAuth", "$tgConfirm", "$location", "$routeParams", "$tgConfig",
                                  "$tgNavUrls", InvitationDirective])


###################
## Change Email
###################

ChangeEmailDirective = ($repo, $model, $auth, $confirm, $location, $params, $navUrls) ->
    link = ($scope, $el, $attrs) ->

module.directive("tgRegister", ["$tgAuth", "$tgConfirm", "$location", "$tgConfig", "$tgNavUrls",
                                RegisterDirective])

#############################################################################
## Forgot Password Directive
#############################################################################

ForgotPasswordDirective = ($auth, $confirm, $location, $navUrls) ->
    link = ($scope, $el, $attrs) ->
