Hi jacoblang,
Huh! I was just sitting down to look at this when I found out I'd already written an API function for this very job! Wow, I must be getting old: I'd completely forgotten.
Give this page a read:
http://docs.formtools.org/api/?page=ft_api_login
It's bare bones: it just explains how the function works. You'll need to do the following:
1. Include the FT API in all pages where you want to add this login form (or much better would to be just add it to one include file).
2. wrap the code in that page to detect the presence of a login POST submit, so it only tries to login with the username + password from your form.
That's pretty much it... please do let me know if you have any trouble.
- Ben
Huh! I was just sitting down to look at this when I found out I'd already written an API function for this very job! Wow, I must be getting old: I'd completely forgotten.
Give this page a read:
http://docs.formtools.org/api/?page=ft_api_login
It's bare bones: it just explains how the function works. You'll need to do the following:
1. Include the FT API in all pages where you want to add this login form (or much better would to be just add it to one include file).
2. wrap the code in that page to detect the presence of a login POST submit, so it only tries to login with the username + password from your form.
That's pretty much it... please do let me know if you have any trouble.
- Ben