Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Member registration ends in redirect instead of showing a user message #4818

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
maneeshblr opened this issue May 4, 2025 · 2 comments
Open
Labels
member-functionality under review An EE team member is reviewing this issue

Comments

@maneeshblr
Copy link

maneeshblr commented May 4, 2025

Description of the problem
When a member submits the member registration form, the operation results in a redirect. The user is provided with no information about the outcome of the registration process.

How To Reproduce

  1. Ensure that the legacy templates are enabled, or forum addon is installed and enabled.
  2. Steps to reproduce the behavior:
  3. Fill the member registration form.
  4. The home page of the site is loaded after the form is submitted.

Error Messages
There is no error message. The redirect is confusing to the user.


Screenshots / Videos / Template Code

Environment Details:

  • Version: 7.5.9
  • PHP Version 8.x
  • MySQL Version 8.x
  • OS: Linux
  • Web Server: Apache

Possible Solution
Line 651 in mod.member_register.php in "member" addon.
Current: return ee()->functions->redirect($return_link);
Fixed: ee()->output->show_message($data);

Additional context
NA

@intoeetive
Copy link
Contributor

@maneeshblr you can use return and return_error parameter to specify where you want to redirect the user to

However - @bryannielsen , any thoughts if we need to show a message if none of return parameters is specified?

@intoeetive intoeetive added under review An EE team member is reviewing this issue member-functionality labels May 5, 2025
@maneeshblr
Copy link
Author

maneeshblr commented May 5, 2025

@intoeetive The lines above the point where it returns, it configured $data variable (see below) but never uses it. So, one would wonder why the $data is configured but not used right before the method returns. Also, it is not clear what the developer of the site can do to show a message to the user to go see their email and activate the registration. There is no way to provide return parameter when the forum templates are being used - the registration form's "form" tag is created in the EE member module and not in the templates in system/user path.

$data = array(
'title' => lang('mbr_registration_complete'),
'heading' => lang('thank_you'),
'content' => lang('mbr_registration_completed') . "\n\n" . $message,
'redirect' => '',
'link' => array($return, $site_name)
);
return ee()->functions->redirect($return_link);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
member-functionality under review An EE team member is reviewing this issue
Projects
None yet
Development

No branches or pull requests

2 participants