Skip to content

Commit 8aee630

Browse files
committed
OXDEV-9927 Render template
1 parent 26eedd5 commit 8aee630

4 files changed

Lines changed: 10 additions & 0 deletions

File tree

src/Authentication/TwoFactorAuth/Controller/TwoFactorAuthController.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
class TwoFactorAuthController extends FrontendController
1010
{
11+
12+
protected $_sThisTemplate = '@oe_security_module/templates/two_factor_auth';
13+
1114
private function handleOTP(): void
1215
{
1316
$code = Registry::getRequest()->getRequestEscapedParameter('code');

translations/de/oesecuritymodule_lang.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,7 @@
4141
'GENERATE_STRONG_PASSWORD' => 'Starkes Passwort generieren',
4242

4343
'SIGN_IN_PROVIDER' => 'Anmelden mit %s',
44+
45+
'TWO_FACTOR_AUTHENTICATION_TITLE' => 'Two Factor Authentication',
46+
'TWO_FACTOR_AUTHENTICATION_DESCRIPTION' => 'Code has been sent to your email. Please enter it below to proceed.',
4447
];

translations/en/oesecuritymodule_lang.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,7 @@
4141
'GENERATE_STRONG_PASSWORD' => 'Generate Strong Password',
4242

4343
'SIGN_IN_PROVIDER' => 'Sign in with %s',
44+
45+
'TWO_FACTOR_AUTHENTICATION_TITLE' => 'Two Factor Authentication',
46+
'TWO_FACTOR_AUTHENTICATION_DESCRIPTION' => 'Code has been sent to your email. Please enter it below to proceed.',
4447
];

views/twig/templates/two_factor_auth.html.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{% capture append = "oxidBlock_content" %}
22
<h1 class="page-header">{{ translate({ ident: "TWO_FACTOR_AUTHENTICATION_TITLE" }) }}</h1>
3+
<p >{{ translate({ ident: "TWO_FACTOR_AUTHENTICATION_DESCRIPTION" }) }}</p>
34
<br>
45
<form action="{{ oViewConf.getSelfLink()|raw }}" name="two_factor_auth" method="post" role="form">
56
<div class="hidden">

0 commit comments

Comments
 (0)