Skip to content

Commit a6a5c32

Browse files
committed
2FA login notification subject to be shown in HTML e-mail
Signed-off-by: Hiroki Narukawa <[email protected]>
1 parent 3f4941e commit a6a5c32

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

settings/Activity/SecurityProvider.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ public function parse($language, IEvent $event, IEvent $previousEvent = null) {
6161
$event->setParsedSubject($l->t('You successfully logged in using two-factor authentication (%1$s)', [
6262
$params['provider'],
6363
]));
64+
$event->setRichSubject(htmlspecialchars($l->t('You successfully logged in using two-factor authentication (%1$s)', [
65+
'provider' => $params['provider'],
66+
])), []);
6467
if ($this->activityManager->getRequirePNG()) {
6568
$event->setIcon($this->urlGenerator->getAbsoluteURL($this->urlGenerator->imagePath('core', 'actions/password.png')));
6669
} else {

0 commit comments

Comments
 (0)