<option name="register_disabled">
<categoryname>user.register</categoryname>
<optiontype>boolean</optiontype>
- <enableoptions>!register_enable_disclaimer,!register_admin_notification,!register_activation_method</enableoptions>
+ <enableoptions>!register_enable_disclaimer,!register_activation_method</enableoptions>
</option>
<option name="register_enable_disclaimer">
<categoryname>user.register</categoryname>
<optiontype>boolean</optiontype>
<defaultvalue>1</defaultvalue>
</option>
- <option name="register_admin_notification">
- <categoryname>user.register</categoryname>
- <optiontype>boolean</optiontype>
- </option>
<option name="register_activation_method">
<categoryname>user.register</categoryname>
<optiontype>radioButton</optiontype>
<delete>
<option name="http_enable_gzip" />
<option name="meta_keywords" />
+ <option name="register_admin_notification" />
</delete>
</data>
define('REGISTER_ALLOWED_EMAILS', '');
define('REGISTER_DISABLED', 0);
define('REGISTER_ENABLE_DISCLAIMER', 1);
-define('REGISTER_ADMIN_NOTIFICATION', 0);
define('REGISTER_ACTIVATION_METHOD', '1');
define('REGISTER_USERNAME_MIN_LENGTH', 3);
define('REGISTER_USERNAME_MAX_LENGTH', 25);
$this->message = 'wcf.user.register.success.awaitActivation';
}
- // notify admin
- if (REGISTER_ADMIN_NOTIFICATION) {
- // get default language
- $language = LanguageFactory::getInstance()->getDefaultLanguage();
-
- $email = new Email();
- $email->addRecipient(new Mailbox(MAIL_ADMIN_ADDRESS, null, $language));
- $email->setSubject($language->getDynamicVariable('wcf.user.register.notification.mail.subject'));
- $email->setBody(new PlainTextMimePart($language->getDynamicVariable('wcf.user.register.notification.mail', ['user' => $user])));
- $email->send();
- }
-
$this->fireNotificationEvent($user);
if ($this->captchaObjectType) {
// https://github.com/WoltLab/WCF/issues/3561
define('META_KEYWORDS', '');
+ // The admin notification is redundant and removed in 5.4.
+ // https://github.com/WoltLab/WCF/issues/3674
+ define('REGISTER_ADMIN_NOTIFICATION', 0);
+
$filename = WCF_DIR.'options.inc.php';
// create options file if doesn't exist
<item name="wcf.acp.option.register_disabled.description"><![CDATA[Schaltet die Registrierung für neue Benutzer gänzlich ab. Neue Benutzer können nur noch manuell durch den Administrator angelegt werden.]]></item>
<item name="wcf.acp.option.register_enable_disclaimer"><![CDATA[Nutzungsbedingungen aktivieren]]></item>
<item name="wcf.acp.option.register_enable_disclaimer.description"><![CDATA[Die Nutzungsbedingungen müssen durch den Benutzer vor der Registrierung akzeptiert werden.]]></item>
- <item name="wcf.acp.option.register_admin_notification"><![CDATA[Administrator über neue Registrierungen per E-Mail benachrichtigen]]></item>
<item name="wcf.acp.option.register_activation_method"><![CDATA[Aktivierungsmethode]]></item>
<item name="wcf.acp.option.register_activation_method.byAdmin"><![CDATA[Aktivierung erfolgt durch Administrator]]></item>
<item name="wcf.acp.option.register_activation_method.byUser"><![CDATA[Benutzer aktiviert sich durch E-Mail-Bestätigung]]></item>
<item name="wcf.acp.option.register_disabled.description"><![CDATA[Disables registration for all users, new users can be created through an administrator.]]></item>
<item name="wcf.acp.option.register_enable_disclaimer"><![CDATA[Enable disclaimer]]></item>
<item name="wcf.acp.option.register_enable_disclaimer.description"><![CDATA[Disclaimer must be accepted during registration.]]></item>
- <item name="wcf.acp.option.register_admin_notification"><![CDATA[Notify administrator of new registrations]]></item>
<item name="wcf.acp.option.register_activation_method"><![CDATA[Registration Approval Method]]></item>
<item name="wcf.acp.option.register_activation_method.byAdmin"><![CDATA[Only administrators can approve registrations]]></item>
<item name="wcf.acp.option.register_activation_method.byUser"><![CDATA[Registrations are approved through an email confirmation]]></item>