Frontend\Modules\Profiles\Actions\ForgotPassword::execute PHP Method

execute() public method

Execute the extra.
public execute ( )
    public function execute()
    {
        // only for guests
        if (!FrontendProfilesAuthentication::isLoggedIn()) {
            parent::execute();
            $this->loadTemplate();
            $this->loadForm();
            $this->validateForm();
            $this->parse();
        } else {
            // already logged in, redirect to settings
            $this->redirect(FrontendNavigation::getURLForBlock('Profiles', 'Settings'));
        }
    }