Regenerate lang

This commit is contained in:
Djamil Legato
2017-08-25 17:21:38 -07:00
parent 684aae1470
commit fd45ea284b
2 changed files with 2 additions and 1 deletions

View File

@@ -688,3 +688,4 @@ PLUGIN_ADMIN:
2FA_CODE_INPUT: "2FA Code (if enabled)"
2FA_SECRET: "2FA Secret"
2FA_SECRET_HELP: "Scan this code into your Authenticator App or enter the code manually. Check the Grav docs for more information"
2FA_REGENERATE: "Regenerate"

View File

@@ -7,7 +7,7 @@
<img style="border: 1px solid #ddd" data-2fa-image src="{{ two_fa.getQRCodeImageAsDataUri(grav.user.email, value) }}" />
<div class="2fa-secret" data-2fa-secret>{{ value|chunkSplit(4, ' ') }}</div>
<button class="button button-small" data-2fa-regenerate><i class="fa fa-fw fa-refresh"></i> Regenerate</button>
<button class="button button-small" data-2fa-regenerate><i class="fa fa-fw fa-refresh"></i> {{ 'PLUGIN_ADMIN.2FA_REGENERATE'|t }}</button>
<input type="text" style="display:none;" name="{{ (scope ~ field.name)|fieldName }}" data-2fa-value value="{{ value|join(', ') }}" />
</div>