Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Info

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. 

  • When using the javascript mode, edit the file template.php which is located at the module directory.
  • If you prefer to manually adjust the template, disable the javascript mode at the module settings and insert following code into your login.tpl file:

    Code Block
    linenumberstrue
    {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}




Info
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.