Exactly the same problem here with the same version of osTicket, PHP, and MySQL.
User clicks the authentication link in the email, I can see the status of that user become activated from pending authentication. In other words, that means the user account has been created and activated successfully.
However, when the user login with the correct account and password, it just redirects to the login page.
Can someone please take a look at the related parts of the codes?
I believe there are more than few ppl face this problem, according to the issues on the GitHub page and the articles here.
As the previous posts said when the user login with an invalid account and password, it will show the invalid message.
That indicates the osTicket has checked the username and password successfully, but the next step went wrong.
I have check all the error logs you mentioned above, including Apache error logs (/var/log/apache2/error.log), PHP error logs (set "error_log = On" in /etc/php/7.4/php.ini and the logs are write into the same file with Apache in /var/log/apache2/error.log), MySQL error logs (/var/log/mysql/error.log), osTicket System logs, and browser console logs.
But found nothing useful. 🙁