Skip to content
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

Registration Module sends Activation E-Mail even if Send activation e-mail is NOT checked when Re-Registering #1526

Closed
mvscheidt opened this issue May 14, 2018 · 2 comments
Assignees
Labels
Milestone

Comments

@mvscheidt
Copy link
Contributor

Steps to Recreate the Issue in the Demo:

  1. Create Registration Module with the following Settings
    themes_ contao_official_demo front_end_modules edit_module_id_64-contao_open_source_cms-_2018-05-14_10 46 03
  2. Add Registration Module somewhere on https://demo.contao.org/en/user.html
  3. Go to https://demo.contao.org/en/user.html and register with an E-Mail.
  4. You will land on the page https://demo.contao.org/en/user.html again without any special message, no Mail will be send.
  5. Now try to Re-register again with the same E-Mail.
  6. You will land on the page https://demo.contao.org/en/user.html again and the module has output a message "The activation mail has been re-sent to your e-mail address."

6. should not happen in my opinion and seems like a bug. Reason is because if I do not want to send any activation E-Mails this means I want to activate the users manually.

I read the Code and I think all that needs to be done is to change this

		// Check for a follow-up registration (see #7992)
		if (\Input::post('email', true) != '' && ($objMember = \MemberModel::findUnactivatedByEmail(\Input::post('email', true))) !== null)
		{
			$this->resendActivationMail($objMember);

			return;
		}

to this

		// Check for a follow-up registration (see #7992)
		if ($this->reg_activate && \Input::post('email', true) != '' && ($objMember = \MemberModel::findUnactivatedByEmail(\Input::post('email', true))) !== null)
		{
			$this->resendActivationMail($objMember);

			return;
		}

However I haven't tested what happens then, so maybe some additional changes are required.

Maybe in this case a message like Administrator has not activated your account yet would be appropriate, but not sure what would be best here seeing how this might require new translations to be made.

@leofeyer leofeyer added the bug label May 17, 2018
@leofeyer leofeyer added this to the 4.4.19 milestone May 17, 2018
@leofeyer
Copy link
Member

I think your fix is correct.

@leofeyer
Copy link
Member

Fixed in 8c65ec8. Thank you @mvscheidt.

@leofeyer leofeyer modified the milestones: 4.4.19, 4.4 May 14, 2019
leofeyer pushed a commit that referenced this issue Mar 12, 2020
Description
-----------

| Q                | A
| -----------------| --- 
| Fixed issues     | Fixes #974

Add id to filter box for tl_module

Commits
-------

4f1d9202 Add id to filter box for tl_module (see #974)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants