Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.
Hello,
Working on creating tickets via a telegram bot, I need to fetch some data from the database so I use the API. This is all good but it's a bit slow since it has to make several requests. I was thinking about making the script act as a real user and directly connect to projeqtor so it can have access to all the classes and functions. However, even after looking around some files, I'm still not sure how the login is handled.
Is it possible to simulate real user login via a script (located in tool directory) and if yes, how ?
A bit more precision,
The script is in tool/ but is called via a POST request from nodered so it doesn't have direct access to the classes and functions
So you will have access as client, and cannot simulaite connected user on server side...
ProjeQtOr uses PHP Session (using cookies) to identify connexion.
but wouldn't it be possible to create a new session as if it was my first visit on the page ? And I could save the PHP_SESSID to reuse the same session
We do not manage this.
PHP does.
I'm not sure, for security reason, you can find a workaroud
Nevermind, I got it working by copying what the API does. Thx for replying