]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add icon to twofactor_backupcodes notification 16417/head
authorJan-Christoph Borchardt <hey@jancborchardt.net>
Tue, 16 Jul 2019 08:23:34 +0000 (10:23 +0200)
committerJan-Christoph Borchardt <hey@jancborchardt.net>
Tue, 16 Jul 2019 10:35:20 +0000 (12:35 +0200)
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
apps/twofactor_backupcodes/lib/Notifications/Notifier.php
apps/twofactor_backupcodes/tests/Unit/Notification/NotifierTest.php

index 658f23a7a93575b840fbece166af3036d61da899..e4e2bcebb6804ad6fdbdc66840c3c571417e398e 100644 (file)
@@ -60,6 +60,9 @@ class Notifier implements INotifier {
                                );
 
                                $notification->setLink($this->url->linkToRouteAbsolute('settings.PersonalSettings.index', ['section' => 'security']));
+
+                               $notification->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/password.svg')));
+
                                return $notification;
 
                        default:
index 9a641eb9f85a39af9f2f7a569644bd5d38627ba4..0f03fba7de82984d3fddd9ccda5ab7acae9079c2 100644 (file)
@@ -117,7 +117,7 @@ class NotifierTest extends TestCase {
                        ->willReturnSelf();
                $notification->expects($this->once())
                        ->method('setParsedMessage')
-                       ->with('You have enabled two-factor authentication but have not yet generated backup codes. Be sure to do this in case you lose access to your second factor.')
+                       ->with('You enabled two-factor authentication but did not generate backup codes yet. They are needed to restore access to your account in case you lose your second factor.')
                        ->willReturnSelf();
 
                $this->url->expects($this->once())