diff options
author | Joas Schilling <coding@schilljs.com> | 2017-09-01 15:04:17 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-09-01 15:04:17 +0200 |
commit | e47d627fc428545de5d7382c58ce38998376e3c3 (patch) | |
tree | c919704da928ba8ac7d303261af536134d228819 /settings/Mailer | |
parent | 45f687a279923030eb19cfb4bf21a3dd7b027fa6 (diff) | |
download | nextcloud-server-e47d627fc428545de5d7382c58ce38998376e3c3.tar.gz nextcloud-server-e47d627fc428545de5d7382c58ce38998376e3c3.zip |
Fix naming of user id in email meta data
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'settings/Mailer')
-rw-r--r-- | settings/Mailer/NewUserMailHelper.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/settings/Mailer/NewUserMailHelper.php b/settings/Mailer/NewUserMailHelper.php index 1571cfdcb49..c4c09653370 100644 --- a/settings/Mailer/NewUserMailHelper.php +++ b/settings/Mailer/NewUserMailHelper.php @@ -118,14 +118,14 @@ class NewUserMailHelper { $emailTemplate = $this->mailer->createEMailTemplate(); $emailTemplate->addHeader(); $displayName = $user->getDisplayName(); - $userName = $user->getUID(); - if ($displayName === $userName) { + $userId = $user->getUID(); + if ($displayName === $userId) { $emailTemplate->addHeading($this->l10n->t('Welcome aboard')); } else { $emailTemplate->addHeading($this->l10n->t('Welcome aboard %s', [$displayName])); } $emailTemplate->addBodyText($this->l10n->t('You have now an %s account, you can add, protect, and share your data.', [$this->themingDefaults->getName()])); - $emailTemplate->addBodyText($this->l10n->t('Your username is: %s', [$userName])); + $emailTemplate->addBodyText($this->l10n->t('Your username is: %s', [$userId])); if ($generatePasswordResetToken) { $leftButtonText = $this->l10n->t('Set your password'); } else { @@ -142,7 +142,7 @@ class NewUserMailHelper { $emailTemplate->setMetaData('settings.Welcome', [ 'link' => $link, 'displayname' => $displayName, - 'username' => $userName, + 'userid' => $userId, 'instancename' => $this->themingDefaults->getName(), 'resetTokenGenerated' => $generatePasswordResetToken, ]); |