You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »


If an Auto Login Link is expired or if the maximum of page views has been reached, an error message will appear on the login page.

The error message get inserted using Javascript, thereforce, no template changes must be done.


It is possible to modify the output of the messages.

Javascript Mode:
Edit the file template.php. The file can be found in the module directory.


Change the WHMCS Template File:
You can copy & paste the following into your login.tpl file:


{if $ModAutologin_InvalidLink}
    <div class='panel panel-danger'>
        <div class='panel-heading'>
            <h3 class='panel-title'><strong>{$LANG.autologinfrommail_invalid_head}</strong></h3>
        </div>
        <div class='panel-body text-center' style='font-size: 15px;'>{$LANG.autologinfrommail_invalid_body}
        </div>
    </div>
{/if}

{if $ModAutologin_MaxViewsReached}
    <div class='panel panel-danger'>
        <div class='panel-heading'>
            <h3 class='panel-title'><strong>{$LANG.autologinfrommail_maxviews_head}</strong></h3>
        </div>
        <div class='panel-body text-center' style='font-size: 15px;'>{$LANG.autologinfrommail_maxviews_body}
        </div>
    </div>
{/if}

{if $ModAutologin_TwoFactorAuth}
    <div class='panel panel-danger'>
        <div class='panel-heading'>
            <h3 class='panel-title'><strong>{$LANG.autologinfrommail_twofactor_head}</strong></h3>
        </div>
        <div class='panel-body text-center' style='font-size: 15px;'>{$LANG.autologinfrommail_twofactor_body}
        </div>
    </div>
{/if}
Template changes are optional.
If you do not want to display error messages, then disable the Javascript Mode and dont insert this code into your login.tpl file.


  • No labels