Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

User login from URL

Hi! I´m new to OSTicket, so my apologies if this issue has been addressed before. I searched it in the forum for a while but couldn´t find specific info.

We run version 1.9.8.1.  My intention is to login directly from the URL, sending the username and password in the URL itself.

I know it´s not safe and that the password will be sent in readable form, but in the environment we plan to implement this funcion, that´s acceptable.

Our usernames are emails, so there´s a "@" always included.

I have tried the "classics":


2) http://www.mysite.com/login.php?username=myname@mydomain.com&passwd=mypassword

3) http://www.mysite.com/login.php?luser=myname@mydomain.com&lpasswd=mypassword

And none of them work... I never leave the login.php page. No error message at all.

I hope someone could guide me in this process.

Thanks in advance!!

Pablo


Tagged:

Comments

  • 1.9.8.1 is pretty old, but I don't remember it having the functionality that you are describing.
  • Thanks Ntozier!

    I´ve just made it work using some javascript (I am accessing the OSTicket system from an Android app that we are developing) but not from the URL. There´s no code for processing parameters in the php file. It could be modified to process the request via URL, but I don´t know what would happen on upgrades.

    The javascript sent to login.php is as follows:

    (function() {document.getElementById('username').value = 'yournamehere'; document.getElementById('passwd').value = 'yourpassword'; document.getElementsByClassName('btn')[0].click();})()

    I hope it´s useful to someone.

    Thanks and regards,

    Pablo


Sign In or Register to comment.