Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-19T22:08:00.207Z
Answers.LastActivityDate: 2018-01-19T22:08:00.207Z
Answers.UserDisplayName: Jeremy A
Body: <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>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-01-19T00:43:16.937Z
Comments.Text: Seems like you just want to uncheck "Verify Email Addresses?" under Settings->Users->Settings?
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-01-19T07:33:52.460Z
Comments.Text: 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
Comments.UserDisplayName: Robin Schambach
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-01-19T21:55:44.233Z
Comments.Text: @BradBell thanks that worked. I must have had something else in-flux during my original attempts with that Admin setting
Comments.UserDisplayName: Jeremy A
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-01-19T21:56:45.910Z
Comments.Text: @JeremyA Awesome... if you want to add it as an official answer, I'll throw some points/reputation your way. :)
Comments.UserDisplayName: Brad Bell
Tags: <activation>
Title: Prevent Activation Email on creation - Wait for Admin Approval
ThreadText: # 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**: @username_1 thanks that worked. I must have had something else in-flux during my original attempts with that Admin setting  
  > **username_1**: @username_0 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 @username_1 - I just needed to use the Admin setting.
  
  > Seems like you just want to uncheck "Verify Email Addresses?" under >Settings->Users->Settings
  
  
  ---
  
  