www/app/components/authentication/controllers/signupController.js
/**
         * @desc Get the information of form and call webservice to try signup user
         * and redirect them to provisional plans list page
         * @function _signup
         * @param {bool} formIsValid Passed from view, is a valid form angular boolean
         * @memberOf Controllers.SignupController
         */
@desc Get the information of form and call webservice to try signup user
and redirect them to provisional plans list page
@function _signup
@param {bool} formIsValid Passed from view, is a valid form angular boolean
@memberOf Controllers.SignupController
@desc Get the information of form and call webservice to try signup user and redirect them to provisional plans list page @function _signup @param { bool } formIsValid Passed from view is a valid form angular boolean @memberOf Controllers . SignupController
function _signup(formIsValid) {
            if (_passwordAndConfirmationIsEqual() && formIsValid) {
                var user = new neogenz.beans.factory.getBean('User', null);
                user.email = $scope.userInput.email.toLowerCase();
                user.password = $scope.userInput.password;
                user.firstName = $scope.userInput.firstName;
                user.lastName = $scope.userInput.lastName;
                user.username = user.email;
                authenticateWebApi.signup(user).then(function () {
                    toastr.success(app.uiManager.messages.signup.success);
                    $state.go('provisionalPlans');
                }, function () {
                    $rootScope.error = 'Failed to signup';
                });
            } else if (!_passwordAndConfirmationIsEqual()) {
                $scope.signupForm.passwordConfirm.$invalid = true;
            }
        }
function _signup ( formIsValid ) { if ( _passwordAndConfirmationIsEqual ( ) && formIsValid ) { var user = new neogenz . beans . factory . getBean ( 'User' , null ) ; user . email = $scope . userInput . email . toLowerCase ( ) ; user . password = $scope . userInput . password ; user . firstName = $scope . userInput . firstName ; user . lastName = $scope . userInput . lastName ; user . username = user . email ; authenticateWebApi . signup ( user ) . then ( function ( ) { toastr . success ( app . uiManager . messages . signup . success ) ; $state . go ( 'provisionalPlans' ) ; } , function ( ) { $rootScope . error = 'Failed to signup' ; } ) ; } else if ( ! _passwordAndConfirmationIsEqual ( ) ) { $scope . signupForm . passwordConfirm . $invalid = true ; } }
@desc Get the information of form and call webservice to try signup user
 and redirect them to provisional plans list page
 @function _signup
 @param {bool} formIsValid Passed from view, is a valid form angular boolean
 @memberOf Controllers.SignupController
@desc Get the information of form and call webservice to try signup user and redirect them to provisional plans list page @function _signup @param { bool } formIsValid Passed from view is a valid form angular boolean @memberOf Controllers . SignupController