Add icon to twofactor_backupcodes notification

Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
This commit is contained in:
Jan-Christoph Borchardt 2019-07-16 10:23:34 +02:00
parent d94d42f089
commit 51517d3a36
No known key found for this signature in database
GPG key ID: CBD846FC845CBE17
2 changed files with 4 additions and 1 deletions

View file

@ -60,6 +60,9 @@ class Notifier implements INotifier {
); );
$notification->setLink($this->url->linkToRouteAbsolute('settings.PersonalSettings.index', ['section' => 'security'])); $notification->setLink($this->url->linkToRouteAbsolute('settings.PersonalSettings.index', ['section' => 'security']));
$notification->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/password.svg')));
return $notification; return $notification;
default: default:

View file

@ -117,7 +117,7 @@ class NotifierTest extends TestCase {
->willReturnSelf(); ->willReturnSelf();
$notification->expects($this->once()) $notification->expects($this->once())
->method('setParsedMessage') ->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(); ->willReturnSelf();
$this->url->expects($this->once()) $this->url->expects($this->once())