Skip to content
Snippets Groups Projects
Unverified Commit 86a399d8 authored by Morris Jobke's avatar Morris Jobke Committed by GitHub
Browse files

Merge pull request #16417 from nextcloud/design/backupcodes-notification

Backupcodes notification design details
parents 84a1712d 51517d3a
No related branches found
No related tags found
No related merge requests found
...@@ -56,10 +56,13 @@ class Notifier implements INotifier { ...@@ -56,10 +56,13 @@ class Notifier implements INotifier {
$notification->setParsedSubject( $notification->setParsedSubject(
$l->t('Generate backup codes') $l->t('Generate backup codes')
)->setParsedMessage( )->setParsedMessage(
$l->t('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.') $l->t('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.')
); );
$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:
......
...@@ -117,7 +117,7 @@ class NotifierTest extends TestCase { ...@@ -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())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment