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;
}