gamonoid / icehrm

Manage your employees easily with a robust and efficient Human Resource Management System
http://icehrm.com
Other
567 stars 368 forks source link

Fix api authentication #278

Closed pantherale0 closed 1 year ago

pantherale0 commented 2 years ago

API auth appears to be broken for Apache users in the latest version.

This PR fixes compatibility with the old style API key (is still used under the system settings) and also updates the .htaccess file for the API so that apache passes the header into PHP properly.