Page 1 of 1

Autologin?

Posted: Thu Oct 06, 2011 7:51 pm
by unified
What to I have to do to auto login to Hesk?

I have added Hesk into a subdirectory of my exisiting ASP.Net site, and I am trying to avoid having users to have to login again when they have already logged into the ASP.Net application.

I saw that the admin_main.php looks for $_POST['user'] and $_POST['pass'], so I tried sending:


http://localhost/hesk23/admin/index.php ... edpassword


However, this still causes the login form to display.

I realize that sending user information in this manner is not safe, but I am just exploring this method and right now our information is not sensitive enough to worry about security at this time.

Re: Autologin?

Posted: Fri Oct 07, 2011 6:21 am
by Klemen
You will need to send user and password using POST and not GET method (by adding them to the query you are sending them as GET).

Also, you will need to send value 'a' set to 'do_login' (this one can be sent using GET).

The exact code to use would be up to you as it's out of the scope of my free support, but the above guidelines should turn you into the correct direction.

Re: Autologin?

Posted: Fri Oct 07, 2011 10:28 am
by unified
Thanks, it worked. It also gave me a wonderful opportunity to brush up on the POST and GET methods. :D