Aris.N. Posted August 18, 2018 Share Posted August 18, 2018 Hi, Is there a way to display, at the client area, an alert for the clients who have not enabled the Two Factor Authentication? I need something similar with the alert displayed when the client has not verified his email. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted August 18, 2018 Share Posted August 18, 2018 This would require customisation, I'll move this into the developer corner where someone should be able to assist 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 18, 2018 Share Posted August 18, 2018 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} 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. 4 Quote Link to comment Share on other sites More sharing options...
Aris.N. Posted August 18, 2018 Author Share Posted August 18, 2018 It works perfect. Thank you @Brian 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.