Jump to content

Warn clients who aren't using Two Factor Authorisation.


Recommended Posts

Posted

I've spotted a few of our clients who aren't using Two Factor Authorisation and so to try and push clients to use this cool feature, I've put this warning on the client area. And thought I'd pass it onto the community who would also like to use it.

In /app/views/client/bootstrap/structure.pdt under the Blesta Nav you can paste this code:

    <?php
          if ($this->Html->ifSet($logged_in)) {
          if ($client->two_factor_mode === 'none'){
    ?>
    <div class="container">
      <div class="row">
        <div class="col-sm-12">
            <div class="alert alert-danger alert-dismissible" role="alert">
                <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <strong>Warning!</strong><br />
                <p style="margin-top: 0px !important;font-size: 13px;">
                    It seems you haven't activated Two Factor Authorization yet? It's a security feature in which you provide two means of identification to log into your account.<br>
                    You can enable it <a href="//licensecart.com/customers/main/edit/" class="alert-link">here</a> under "Authentication".
                </p>
            </div>
        </div>
      </div>
    </div>
    <?php } } ?>

All you need to edit there is the licensecart.com to your Blesta installation url. It will display a message like so:

two-factor-authorization.png

Posted
  On 9/1/2016 at 9:11 PM, Paul said:

Nice contribution Mike! It's always good to recommend good security practices. :blesta: 

I'd probably go with the Warning / Yellow/Orange color instead of Red personally, but I like it!

Expand  

Merci Paul mate :) I was just thinking maybe people don't know about it haha :D

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...