Add link to users settings page in admin notification email
This commit is contained in:
parent
7341c68b20
commit
ea7a4d1e75
|
|
@ -147,9 +147,12 @@ class MailService {
|
||||||
* @throws \Exception
|
* @throws \Exception
|
||||||
*/
|
*/
|
||||||
private function sendNewUserNotifEmail(array $to, $username, $userIsEnabled) {
|
private function sendNewUserNotifEmail(array $to, $username, $userIsEnabled) {
|
||||||
|
$link = $this->urlGenerator->linkToRoute('settings_users');
|
||||||
|
$link = $this->urlGenerator->getAbsoluteURL($link);
|
||||||
$template_var = [
|
$template_var = [
|
||||||
'user' => $username,
|
'user' => $username,
|
||||||
'sitename' => $this->defaults->getName()
|
'sitename' => $this->defaults->getName(),
|
||||||
|
'link' => $link,
|
||||||
];
|
];
|
||||||
|
|
||||||
// handle user enableness
|
// handle user enableness
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,3 @@
|
||||||
<?php
|
<?php
|
||||||
echo $l->t('A new user "%s" has created an account on %s and awaits admin approbation', [$_['user'], $_['sitename']]);
|
echo $l->t('A new user "%s" has created an account on %s and awaits admin approbation', [$_['user'], $_['sitename']]);
|
||||||
|
echo str_replace('{link}', $_['link'], '<br/><br/><a href="{link}">{link}</a>');
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,3 @@
|
||||||
<?php
|
<?php
|
||||||
echo $l->t('A new user "%s" has created an account on %s and awaits admin approbation', [$_['user'], $_['sitename']]);
|
echo $l->t('A new user "%s" has created an account on %s and awaits admin approbation', [$_['user'], $_['sitename']]);
|
||||||
|
echo "\n\n".$_['link'];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue