This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
Password Login Parameters
Started 15 years ago by EPark1016 | 4 posts |
-
Is there a way to pass a login parameter to MachForm? For example, If I'm building an admin area for a client and one of the applications in that admin area is the MachForm, rather than have them login twice (once into the admin area and again to MachForm), I'm wondering if I can pass the login credentials via URL like this: e.g. http://site.com/speciallogin?user=user&pass=pass or something to that effect.
Thanks!
Posted 15 years ago # -
Yes, simply edit your index.php file, search around line 30 for this code:
if(!empty($_POST['submit'])){ $username = trim($_POST['admin_username']); $password = trim($_POST['admin_password']);
change it to become:
if(!empty($_POST['submit']) || !empty($_GET['auth'])){ $username = trim($_REQUEST['admin_username']); $password = trim($_REQUEST['admin_password']);
then you can pass the parameters like this:
http://www.example.com/machform/index.php?auth=1&admin_username=xxxxx&admin_password=yyyy
MachForm Founder
Posted 15 years ago # -
and what about reach via URL the export_entries.php
im trying to give direct access via URL, esemple:
http://mysite.com/machform/export_entries.php?id=4&type=csv&admin_username=123&admin_password=123
its possible do that?
Posted 15 years ago # -
You can see to this post also :
http://www.appnitro.com/forums/topic/login-per-url?replies=7
MachForm Support
Posted 15 years ago #
Reply
You must log in to post.