I'm using OST 1.9.8 on Linux.I'm building a small program to refer to tickets in the OST.Tested using System Variable %{ticket.auth_token} in the Email Template.When email notification is sent out, this variable gives a token value for each ticket in the below format.e.g. 7d486f4bdae5ce5f740449646cda3e68a332ca722a9f92df67e1db68087b7584So, I'm using this "auth_token" to build my a new URL to my own program.Now my problem is, how can i verify the auth_token in my own program?I don't seem to this auth_token used in OST itself. Don't know how to retrieve this value or do verification.Any tips please?

Found that %{ticket.auth_token} in the Email Template is calculated from:md5("Internal Ticket ID" + strtolower("Ticket User Email") + SECRET_SALT).Still to find out how to derive from Ticket class.

https://github.com/osTicket/osTicket/blob/55dc25ace736baeaf224ee608cfabc0218022036/view.php#L21-L32Cheers.

Write a Reply...