<p>Thanks to @BradBell - I just needed to use the Admin setting.</p>

<blockquote>
  <p>Seems like you just want to uncheck "Verify Email Addresses?" under >Settings->Users->Settings</p>
</blockquote>

CC BY-SA 3.0
2018-01-19T22:08:00.207Z
2018-01-19T22:08:00.207Z
Jeremy A
<p>I would like to prevent the 'Activate Your Account' w/link from being sent when users first registers via a front-end public registration. </p>

<p><strong>I need activation to happen manually via an Admin.</strong></p>

<p>I have <em>temporarily</em> blocked this by commenting it out in <code>/craft/app/controllers/UsersController.php</code> 
Obviously I do not want to go to production with this, so how can I disable via a plugin?</p>

<p>The code in question appears on line 1049:</p>

<pre><code>//
        if ($verifyNewEmail)
        {
            // Temporarily set the unverified email on the UserModel so the verification email goes to the
            // right place
            $originalEmail = $user-&gt;email;
            $user-&gt;email = $user-&gt;unverifiedEmail;

            if ($isNewUser)
            {
                // Send the activation email
                // $emailSent = craft()-&gt;users-&gt;sendActivationEmail($user);
                $emailSent = true; // *** NOT TRUE, BUT HACKED ***
            }
            else
            {
                // Send the standard verification email
                $emailSent = craft()-&gt;users-&gt;sendNewEmailVerifyEmail($user);
            }

            if (!$emailSent)
            {
                craft()-&gt;userSession-&gt;setError(Craft::t('User saved, but couldn’t send verification email. Check your email settings.'));
            }

            // Put the original email back into place
            $user-&gt;email = $originalEmail;
        }
</code></pre>

CC BY-SA 3.0
2018-01-19T00:43:16.937Z
Seems like you just want to uncheck "Verify Email Addresses?" under Settings->Users->Settings?
Brad Bell
CC BY-SA 3.0
2018-01-19T07:33:52.460Z
For future reference: if there is no setting for such tasks the best way to solve this would be to create a custom plugin with a controller that extends the UserController where you overwrite the things you want to change
Robin Schambach
CC BY-SA 3.0
2018-01-19T21:55:44.233Z
@BradBell thanks that worked. I must have had something else in-flux during my original attempts with that Admin setting
Jeremy A
CC BY-SA 3.0
2018-01-19T21:56:45.910Z
@JeremyA Awesome... if you want to add it as an official answer, I'll throw some points/reputation your way. :)
Brad Bell
<activation>
Prevent Activation Email on creation - Wait for Admin Approval
# Prevent Activation Email on creation - Wait for Admin Approval

(Asked by: username_0 on 2018-01-18)

I would like to prevent the 'Activate Your Account' w/link from being sent when users first registers via a front-end public registration. 
I need activation to happen manually via an Admin.
I have temporarily blocked this by commenting it out in /craft/app/controllers/UsersController.php 
Obviously I do not want to go to production with this, so how can I disable via a plugin?
The code in question appears on line 1049:
//
        if ($verifyNewEmail)
        {
            // Temporarily set the unverified email on the UserModel so the verification email goes to the
            // right place
            $originalEmail = $user->email;
            $user->email = $user->unverifiedEmail;

            if ($isNewUser)
            {
                // Send the activation email
                // $emailSent = craft()->users->sendActivationEmail($user);
                $emailSent = true; // *** NOT TRUE, BUT HACKED ***
            }
            else
            {
                // Send the standard verification email
                $emailSent = craft()->users->sendNewEmailVerifyEmail($user);
            }

            if (!$emailSent)
            {
                craft()->userSession->setError(Craft::t('User saved, but couldn’t send verification email. Check your email settings.'));
            }

            // Put the original email back into place
            $user->email = $originalEmail;
        }

**Tags:** activation

> **Comments:**
> **username_1**: Seems like you just want to uncheck "Verify Email Addresses?" under Settings->Users->Settings?  
> **username_2**: For future reference: if there is no setting for such tasks the best way to solve this would be to create a custom plugin with a controller that extends the UserController where you overwrite the things you want to change  
> **username_0**: @BradBell thanks that worked. I must have had something else in-flux during my original attempts with that Admin setting  
> **username_1**: @JeremyA Awesome... if you want to add it as an official answer, I'll throw some points/reputation your way. :)  

---

## 1 answers

### Answer by username_0 on 2018-01-19. Score: 1 | Accepted answer

Thanks to @BradBell - I just needed to use the Admin setting.

> Seems like you just want to uncheck "Verify Email Addresses?" under >Settings->Users->Settings


---

