 
             promise = $auth.publicRegister($scope.data)
             promise.then (response) ->
-                # TODO: finish this. Go to login and show success message
+                # TODO: finish this. Authenticate user and go to projects page
+                #$confirm.notify("success", response.data.detail)
                 console.log response
                 #
 

            promise = $auth.forgotPassword($scope.data)
            promise.then (response) ->
                if response.data.detail
                    # TODO: Show a success message and move to /login
                    #$confirm.success(response.data.detail)
                    console.log response.data.detail
                    #


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

ForgotPasswordDirective = ($auth, $confirm, $location) ->
    link = ($scope, $el, $attrs) ->
        $scope.data = {}
        form = $el.find("form").checksley()
