Jump to content

TOTP Alert for Clients


Aris.N.

Recommended Posts

3 hours ago, Aris.N. said:

I need something similar with the alert displayed when the client has not verified his email.

then the simplest solution would be to edit /templates/six (or custom)/includes/verifyemail.tpl and add the following to the end of the file...

{if $clientsdetails.twofaenabled === false}
    <div class="email-verification">
        <div class="container">
            <div class="row">
                <div class="col-xs-2 col-xs-push-10 col-sm-1 col-sm-push-11">
                    <button type="button" class="btn close"><span aria-hidden="true">×</span></button>
                </div>
                <div class="col-xs-10 col-xs-pull-2 col-sm-7 col-sm-pull-1 col-md-8">
                    <i class="fas fa-tablet-alt"></i>
                    <span class="text">{$LANG.twofaactivationintro}</span>
                </div>
                <div class="col-xs-12 col-sm-4 col-md-3 col-sm-pull-1">
                    <a href="clientarea.php?action=security" class="btn btn-default btn-sm btn-block btn-resend-verify-email">{$LANG.twofaenable}</a>
                    </button>
                </div>
            </div>
        </div>
    </div>
{/if}

RPIQlIH.png

i've used an existing 2FA language string as an example (though it's too long for this purpose), so you should probably create your own custom string using Language Overrides, or if your site is only using one language, use that directly in the template instead of a language string.

also, remember that you'll need to update the template after each update if the auto-updater overwrites it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated