e107inc / e107

e107 Bootstrap CMS (Content Management System) v2 with PHP, MySQL, HTML5, jQuery and Twitter Bootstrap. Issue Discussion Room: https://gitter.im/e107inc/e107
https://e107.org
GNU General Public License v3.0
318 stars 212 forks source link

[Feature request]: add constant e_FPW similar way how e_SIGNUP and e_LOGIN work #5158

Open Jimmi08 opened 6 months ago

Jimmi08 commented 6 months ago

Motivation

To have the same logic / rules for 3 pages related to user registration

  1. avoid the need to use SITEURL.fpw.php to get full URL
  2. possibility to use customfpw.php similar way as e_LOGIN and e_SIGNUP do

Proposed Solution

replace in the redirection class and other places (shortcodes). $this->self_exceptions = array(e_SIGNUP, SITEURL.'fpw.php', e_LOGIN, SITEURL.'membersonly.php');

set it similar way

        // login/signup
        define('e_SIGNUP', SITEURL.(file_exists(e_BASE.'customsignup.php') ? 'customsignup.php' : 'signup.php'));

        if(!defined('e_LOGIN'))
        {
            define('e_LOGIN', SITEURL.(file_exists(e_BASE.'customlogin.php') ? 'customlogin.php' : 'login.php'));
        }

Alternatives

Maybe redirection in e_module in some plugin. Not sure.

Additional Context

No response

Jimmi08 commented 4 months ago

Not needed, solved by custom plugin. Invalid issue.