summaryrefslogtreecommitdiffstats
path: root/settings/Mailer
diff options
context:
space:
mode:
Diffstat (limited to 'settings/Mailer')
-rw-r--r--settings/Mailer/NewUserMailHelper.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/settings/Mailer/NewUserMailHelper.php b/settings/Mailer/NewUserMailHelper.php
index d88f7300f84..fd447c48f01 100644
--- a/settings/Mailer/NewUserMailHelper.php
+++ b/settings/Mailer/NewUserMailHelper.php
@@ -136,7 +136,9 @@ class NewUserMailHelper {
$emailTemplate->addHeading($l10n->t('Welcome aboard %s', [$displayName]));
}
$emailTemplate->addBodyText($l10n->t('Welcome to your %s account, you can add, protect, and share your data.', [$this->themingDefaults->getName()]));
- $emailTemplate->addBodyText($l10n->t('Your username is: %s', [$userId]));
+ if($user->getBackendClassName() !== 'LDAP') {
+ $emailTemplate->addBodyText($l10n->t('Your username is: %s', [$userId]));
+ }
if ($generatePasswordResetToken) {
$leftButtonText = $l10n->t('Set your password');
} else {