Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

Commit

Permalink
Properly support i18n for PAGE_TITLE in QR code
Browse files Browse the repository at this point in the history
  • Loading branch information
TimWolla committed Dec 14, 2013
1 parent 9cea496 commit 0f32e65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion template/__twofaAccountManagement.tpl
Expand Up @@ -16,7 +16,8 @@
<dd>
<code class="inlineCode">{$twofaSecret}</code><br />
{if PAGE_TITLE}
{assign var=twofaQRData value='otpauth://totp/'|concat:PAGE_TITLE:'?secret=':$twofaSecret}
{assign var=twofaPageTitle value=PAGE_TITLE|language}
{assign var=twofaQRData value='otpauth://totp/'|concat:$twofaPageTitle:'?secret=':$twofaSecret}
{@$twofaQRData|qr}
{/if}
<input type="hidden" id="twofaSecret" name="twofaSecret" value="{$twofaSecret}" />
Expand Down

0 comments on commit 0f32e65

Please sign in to comment.