+ = $block->escapeHtml(__('All currently active providers will not be available')) ?> + = $block->escapeHtml( + __('which means all admin users will be required to configure an available method before they can login.') + ) ?> +
+{{var username}},
+
+ {{trans "You are required to configure website-wide and personal Two-Factor Authorization in order to login to %store" store=$store_name }}
+
+ {{trans "To do that please Click here" url=$url |noescape}}
+
{{trans "Thank you,"}} {{var store_name}}
diff --git a/TwoFactorAuth/view/adminhtml/email/user_config_required.html b/TwoFactorAuth/view/adminhtml/email/user_config_required.html new file mode 100644 index 00000000..efffe609 --- /dev/null +++ b/TwoFactorAuth/view/adminhtml/email/user_config_required.html @@ -0,0 +1,21 @@ + + + + +{{var username}},
+
+ {{trans "You are required to configure personal Two-Factor Authorization in order to login to %store" store=$store_name}}
+
+ {{trans "To do that please Click here" url=$url |noescape}}
+
{{trans "Thank you, %store" store=$store_name}}
diff --git a/TwoFactorAuth/view/adminhtml/layout/adminhtml_user_edit.xml b/TwoFactorAuth/view/adminhtml/layout/adminhtml_user_edit.xml new file mode 100644 index 00000000..c9771d6c --- /dev/null +++ b/TwoFactorAuth/view/adminhtml/layout/adminhtml_user_edit.xml @@ -0,0 +1,18 @@ + + ++ = $block->escapeHtml(__('Please select one or more Two-Factor Authorization providers to be used to authorize admin users')); ?> +
++ = $block->escapeHtml(__('No providers are available to select, please configure required 2FA provider settings on the server via CLI')); ?> +
+ + + += $block->escapeHtml(__('You need to configure Two-Factor Authorization in order to proceed to your store\'s admin area')); ?>
+= $block->escapeHtml(__('An E-mail was sent to you with further instructions')); ?>
+