Make Avantfax can auto login

Today I receive request to make avantfax can auto login when user open firefox. User and pass is saved in browser itself.

I test many codes and I found simple way to do it. Start from root of localhost folder. (In my case is “/var/www/”) You must edit this file.

/avantfax/includes/templates/main_theme/templates/index.tpl

open file and find </script> and insert this code before it.

{if not $error}
    setTimeout('document.forms[0].submit()',500);
{/if}

This way you can make it auto login in first try and when user to pass isn’t correct. It won’t auto login again.

PS. I’m Thai so my english isn’t that good.  /= =a

Leave a Reply